[Libreoffice-commits] core.git: sw/source

Takeshi Abe tabe at fixedpoint.jp
Fri Nov 22 15:46:58 PST 2013


 sw/source/core/sw3io/sw3convert.cxx |   10 +++++-----
 sw/source/core/text/frmpaint.cxx    |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ee1b1b865b0ccc7418bbfad2a60cd14f851135a8
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Nov 23 08:41:41 2013 +0900

    Mark as const / static
    
    Change-Id: Ia41b8cc062fc1e7c2cf0b8ba64c303919448ef06

diff --git a/sw/source/core/sw3io/sw3convert.cxx b/sw/source/core/sw3io/sw3convert.cxx
index d0a47bd..16e1e34 100644
--- a/sw/source/core/sw3io/sw3convert.cxx
+++ b/sw/source/core/sw3io/sw3convert.cxx
@@ -59,7 +59,7 @@ struct OldFormats
     sal_uInt16              nOldFormat;
 };
 
-static OldFormats aOldDateFmt40[] =
+static const OldFormats aOldDateFmt40[] =
 {
     // Datumsfelder:
     { NF_DATE_SYSTEM_SHORT,         DFF_SSYS },     // Kurzes Systemdatum
@@ -83,7 +83,7 @@ static OldFormats aOldDateFmt40[] =
     { NF_NUMERIC_START,             0  }                // Tabellenende
 };
 
-static OldFormats aOldDateFmt30[] =
+static const OldFormats aOldDateFmt30[] =
 {
     // Datumsfelder:
     { NF_DATE_SYSTEM_SHORT,         DFF_SSYS },     // Kurzes Systemdatum
@@ -107,7 +107,7 @@ static OldFormats aOldDateFmt30[] =
     { NF_NUMERIC_START,             0  }                // Tabellenende
 };
 
-static OldFormats aOldTimeFmt[] =
+static const OldFormats aOldTimeFmt[] =
 {
     // Zeitfelder:
     { NF_TIME_HHMMSS,                   TF_SYSTEM },        // Systemzeit
@@ -117,7 +117,7 @@ static OldFormats aOldTimeFmt[] =
     { NF_NUMERIC_START,             0 }             // Tabellenende
 };
 
-static OldFormats aOldGetSetExpFmt40[] =
+static const OldFormats aOldGetSetExpFmt40[] =
 {
     { NF_TEXT,                      VVF_CMD },      // Kommando anzeigen
     { NF_TEXT,                      VVF_INVISIBLE },    // unsichtbar
@@ -146,7 +146,7 @@ static OldFormats aOldGetSetExpFmt40[] =
     { NF_NUMERIC_START,                 0  }                // Tabellenende
 };
 
-static OldFormats aOldGetSetExpFmt30[] =
+static const OldFormats aOldGetSetExpFmt30[] =
 {
     { NF_TEXT,                      VVF_CMD },      // Kommando anzeigen
     { NF_TEXT,                      VVF_INVISIBLE },    // unsichtbar
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index 253adfb..8890404 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -60,7 +60,7 @@ using namespace ::com::sun::star;
 
 ////////////////////////////////////////////////////////////
 
-bool bInitFont = true;
+static bool bInitFont = true;
 
 class SwExtraPainter
 {


More information about the Libreoffice-commits mailing list