[Libreoffice-commits] core.git: sal/textenc svtools/source
Takeshi Abe
tabe at fixedpoint.jp
Mon Jul 1 05:13:26 PDT 2013
sal/textenc/tencinfo.cxx | 12 ++++++------
svtools/source/misc/sampletext.cxx | 4 ++--
svtools/source/table/defaultinputhandler.cxx | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
New commits:
commit 6c912701dc9fd82dc1fec0481119f3c9d753e161
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon Jul 1 21:00:55 2013 +0900
Mark as const
Change-Id: Ic71f39aaebf07d3b0435882986be71cf2b0390c2
diff --git a/sal/textenc/tencinfo.cxx b/sal/textenc/tencinfo.cxx
index ded6bc5..ccbfe40 100644
--- a/sal/textenc/tencinfo.cxx
+++ b/sal/textenc/tencinfo.cxx
@@ -294,32 +294,32 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const char* pUnixC
{ NULL, RTL_TEXTENCODING_DONTKNOW }
};
- static ImplStrCharsetDef aUnixCharsetJISX0208Tab[] =
+ static ImplStrCharsetDef const aUnixCharsetJISX0208Tab[] =
{
{ NULL, RTL_TEXTENCODING_JIS_X_0208 }
};
- static ImplStrCharsetDef aUnixCharsetJISX0201Tab[] =
+ static ImplStrCharsetDef const aUnixCharsetJISX0201Tab[] =
{
{ NULL, RTL_TEXTENCODING_JIS_X_0201 }
};
- static ImplStrCharsetDef aUnixCharsetJISX0212Tab[] =
+ static ImplStrCharsetDef const aUnixCharsetJISX0212Tab[] =
{
{ NULL, RTL_TEXTENCODING_JIS_X_0212 }
};
- static ImplStrCharsetDef aUnixCharsetGBTab[] =
+ static ImplStrCharsetDef const aUnixCharsetGBTab[] =
{
{ NULL, RTL_TEXTENCODING_GB_2312 }
};
- static ImplStrCharsetDef aUnixCharsetGBKTab[] =
+ static ImplStrCharsetDef const aUnixCharsetGBKTab[] =
{
{ NULL, RTL_TEXTENCODING_GBK }
};
- static ImplStrCharsetDef aUnixCharsetBIG5Tab[] =
+ static ImplStrCharsetDef const aUnixCharsetBIG5Tab[] =
{
{ NULL, RTL_TEXTENCODING_BIG5 }
};
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx
index bacde29..f3279c9 100644
--- a/svtools/source/misc/sampletext.cxx
+++ b/svtools/source/misc/sampletext.cxx
@@ -92,9 +92,9 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice)
}
}
- static sal_Unicode aImplSymbolFontText[] = {
+ static const sal_Unicode aImplSymbolFontText[] = {
0xF021,0xF032,0xF043,0xF054,0xF065,0xF076,0xF0B7,0xF0C8,0};
- static sal_Unicode aImplStarSymbolText[] = {
+ static const sal_Unicode aImplStarSymbolText[] = {
0x2706,0x2704,0x270D,0xE033,0x2211,0x2288,0};
const sal_Unicode* pText = bOpenSymbol ? aImplStarSymbolText : aImplSymbolFontText;
OUString sSampleText(pText);
diff --git a/svtools/source/table/defaultinputhandler.cxx b/svtools/source/table/defaultinputhandler.cxx
index ed47403..ff098f2 100644
--- a/svtools/source/table/defaultinputhandler.cxx
+++ b/svtools/source/table/defaultinputhandler.cxx
@@ -147,7 +147,7 @@ namespace svt { namespace table
sal_uInt16 nKeyModifier;
TableControlAction eAction;
}
- static aKnownActions[] = {
+ static const aKnownActions[] = {
{ KEY_DOWN, 0, cursorDown },
{ KEY_UP, 0, cursorUp },
{ KEY_LEFT, 0, cursorLeft },
More information about the Libreoffice-commits
mailing list