summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-08-28 04:53:50 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-08-28 04:55:33 +0900
commiteb6ab3bc045701e3d4b8751751700d8375f89fcc (patch)
treed84a2b1fd648d49e83fa19ed4018e9b705395556 /unotools
parent7673a08e7200227b9dbcb7ee8706064f55013c44 (diff)
Mark as const
Change-Id: If20ac542f31dd650d6d1cc22ced618f73e1ce773
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/pathoptions.cxx4
-rw-r--r--unotools/source/misc/fontcvt.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 2acbea03de3f..9435505ce1fe 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -196,7 +196,7 @@ struct VarNameAttribute
VarNameProperty eVarProperty; // Which return value is needed by this path variable
};
-static PropertyStruct aPropNames[] =
+static const PropertyStruct aPropNames[] =
{
{ "Addin", SvtPathOptions::PATH_ADDIN },
{ "AutoCorrect", SvtPathOptions::PATH_AUTOCORRECT },
@@ -224,7 +224,7 @@ static PropertyStruct aPropNames[] =
{ "Fingerprint", SvtPathOptions::PATH_FINGERPRINT }
};
-static VarNameAttribute aVarNameAttribute[] =
+static const VarNameAttribute aVarNameAttribute[] =
{
{ SUBSTITUTE_INSTPATH, VAR_NEEDS_SYSTEM_PATH }, // $(instpath)
{ SUBSTITUTE_PROGPATH, VAR_NEEDS_SYSTEM_PATH }, // $(progpath)
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index 516a05a48baa..277afed3960f 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -1404,7 +1404,7 @@ void ConvertChar::RecodeString( OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen
struct RecodeTable { const char* pOrgName; ConvertChar aCvt;};
-static RecodeTable aStarSymbolRecodeTable[] =
+static const RecodeTable aStarSymbolRecodeTable[] =
{
// the first two entries must be StarMath and StarBats; do not reorder!
// reason: fgrep for FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS
@@ -1428,7 +1428,7 @@ static RecodeTable aStarSymbolRecodeTable[] =
{"mtextra", {aMTExtraTab, "StarSymbol", NULL}}
};
-static RecodeTable aAppleSymbolRecodeTable[] = {
+static const RecodeTable aAppleSymbolRecodeTable[] = {
{"symbol", {aAdobeSymbolToAppleSymbolTab, "AppleSymbol", NULL}}
};
@@ -1451,7 +1451,7 @@ const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, con
int nEntries = SAL_N_ELEMENTS(aStarSymbolRecodeTable);
for( int i = 0; i < nEntries; ++i)
{
- RecodeTable& r = aStarSymbolRecodeTable[i];
+ const RecodeTable& r = aStarSymbolRecodeTable[i];
if( aOrgName.equalsAscii( r.pOrgName ) )
{ pCvt = &r.aCvt; break; }
}
@@ -1464,7 +1464,7 @@ const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, con
int nEntries = SAL_N_ELEMENTS(aAppleSymbolRecodeTable);
for( int i = 0; i < nEntries; ++i)
{
- RecodeTable& r = aAppleSymbolRecodeTable[i];
+ const RecodeTable& r = aAppleSymbolRecodeTable[i];
if( aOrgName.equalsAscii( r.pOrgName ) )
{ pCvt = &r.aCvt; break; }
}
@@ -1496,7 +1496,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName,
nEntries = 2;
for( int i = 0; i < nEntries; ++i )
{
- RecodeTable& r = aStarSymbolRecodeTable[i];
+ const RecodeTable& r = aStarSymbolRecodeTable[i];
if( aName.equalsAscii( r.pOrgName ) )
{ pCvt = &r.aCvt; break; }
}