diff options
-rw-r--r-- | sw/inc/fldbas.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/fldbas.cxx | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 06e3f80976d7..53ab8266538a 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -218,8 +218,6 @@ enum SwDateTimeSubType }; -extern sal_uInt16 aTypeTab[]; - /// General tools. String GetResult(double nVal, sal_uInt32 nNumFmt, sal_uInt16 nLang = LANGUAGE_SYSTEM); void SetErrorStr(const String& rStr); diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index d6bdb926b147..524e1855774a 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -70,7 +70,10 @@ static sal_uInt16 lcl_GetLanguageOfFormat( sal_uInt16 nLng, sal_uLong nFmt, /// field names std::vector<String>* SwFieldType::pFldNames = 0; - sal_uInt16 aTypeTab[] = { +namespace +{ + + const sal_uInt16 aTypeTab[] = { /* RES_DBFLD */ TYP_DBFLD, /* RES_USERFLD */ TYP_USERFLD, /* RES_FILENAMEFLD */ TYP_FILENAMEFLD, @@ -113,6 +116,8 @@ std::vector<String>* SwFieldType::pFldNames = 0; /* RES_DROPDOWN */ TYP_DROPDOWN }; +} + const String& SwFieldType::GetTypeStr(sal_uInt16 nTypeId) { if( !pFldNames ) |