summaryrefslogtreecommitdiff
path: root/vcl
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 /vcl
parent7673a08e7200227b9dbcb7ee8706064f55013c44 (diff)
Mark as const
Change-Id: If20ac542f31dd650d6d1cc22ced618f73e1ce773
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/edit/texteng.cxx6
-rw-r--r--vcl/source/filter/ixpm/rgbtable.hxx2
-rw-r--r--vcl/source/fontsubset/sft.cxx2
-rw-r--r--vcl/source/gdi/impvect.cxx6
-rw-r--r--vcl/source/gdi/outmap.cxx4
-rw-r--r--vcl/unx/gtk/window/gtksalframe.cxx2
-rw-r--r--vcl/unx/kde/fpicker/kdefpmain.cxx2
7 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index cd84e6f06d85..3710fbf5ef52 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -234,9 +234,9 @@ void TextEngine::SetMaxTextWidth( sal_uLong nMaxWidth )
}
}
-static sal_Unicode static_aLFText[] = { '\n', 0 };
-static sal_Unicode static_aCRText[] = { '\r', 0 };
-static sal_Unicode static_aCRLFText[] = { '\r', '\n', 0 };
+static const sal_Unicode static_aLFText[] = { '\n', 0 };
+static const sal_Unicode static_aCRText[] = { '\r', 0 };
+static const sal_Unicode static_aCRLFText[] = { '\r', '\n', 0 };
static inline const sal_Unicode* static_getLineEndText( LineEnd aLineEnd )
{
diff --git a/vcl/source/filter/ixpm/rgbtable.hxx b/vcl/source/filter/ixpm/rgbtable.hxx
index 8f86fe8c371c..375dbdecdb2f 100644
--- a/vcl/source/filter/ixpm/rgbtable.hxx
+++ b/vcl/source/filter/ixpm/rgbtable.hxx
@@ -25,7 +25,7 @@ struct XPMRGBTab
sal_uInt8 blue;
};
-static XPMRGBTab pRGBTable[] = {
+static const XPMRGBTab pRGBTable[] = {
{ "white", 255, 255, 255 },
{ "black", 0, 0, 0 },
{ "snow", 255, 250, 250 },
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 548b2d36213b..e1dcb76d6c30 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -414,7 +414,7 @@ _inline sal_uInt32 getTableSize(TrueTypeFont *ttf, sal_uInt32 ord)
#ifndef NO_TYPE42
/* Hex Formatter functions */
-static char HexChars[] = "0123456789ABCDEF";
+static const char HexChars[] = "0123456789ABCDEF";
static HexFmt *HexFmtNew(FILE *outf)
{
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index d427ba4dab9b..027a41632d51 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -45,7 +45,7 @@
struct ChainMove { long nDX; long nDY; };
-static ChainMove aImplMove[ 8 ] = {
+static const ChainMove aImplMove[ 8 ] = {
{ 1L, 0L },
{ 0L, -1L },
{ -1L, 0L },
@@ -56,7 +56,7 @@ static ChainMove aImplMove[ 8 ] = {
{ 1L, 1L }
};
-static ChainMove aImplMoveInner[ 8 ] = {
+static const ChainMove aImplMoveInner[ 8 ] = {
{ 0L, 1L },
{ 1L, 0L },
{ 0L, -1L },
@@ -67,7 +67,7 @@ static ChainMove aImplMoveInner[ 8 ] = {
{ -1L, 0L }
};
-static ChainMove aImplMoveOuter[ 8 ] = {
+static const ChainMove aImplMoveOuter[ 8 ] = {
{ 0L, -1L },
{ -1L, 0L },
{ 0L, 1L },
diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx
index 0f252fa84dc3..63277491c8a9 100644
--- a/vcl/source/gdi/outmap.cxx
+++ b/vcl/source/gdi/outmap.cxx
@@ -52,9 +52,9 @@ DBG_NAMEEX( Region )
// =======================================================================
static int const s_ImplArySize = MAP_PIXEL+1;
-static long aImplNumeratorAry[s_ImplArySize] =
+static const long aImplNumeratorAry[s_ImplArySize] =
{ 1, 1, 5, 50, 1, 1, 1, 1, 1, 1, 1 };
-static long aImplDenominatorAry[s_ImplArySize] =
+static const long aImplDenominatorAry[s_ImplArySize] =
{ 2540, 254, 127, 127, 1000, 100, 10, 1, 72, 1440, 1 };
// -----------------------------------------------------------------------
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index fd6aa07a0cfd..7c4ddfb3016c 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -598,7 +598,7 @@ static void activate_uno(GSimpleAction *action, GVariant*, gpointer)
xDisp->dispatch(aCommand, css::uno::Sequence< css::beans::PropertyValue >());
}
-static GActionEntry app_entries[] = {
+static const GActionEntry app_entries[] = {
{ "OptionsTreeDialog", activate_uno, NULL, NULL, NULL, {0} },
{ "About", activate_uno, NULL, NULL, NULL, {0} },
{ "HelpIndex", activate_uno, NULL, NULL, NULL, {0} },
diff --git a/vcl/unx/kde/fpicker/kdefpmain.cxx b/vcl/unx/kde/fpicker/kdefpmain.cxx
index 8178586b14e9..ed01febd3057 100644
--- a/vcl/unx/kde/fpicker/kdefpmain.cxx
+++ b/vcl/unx/kde/fpicker/kdefpmain.cxx
@@ -60,7 +60,7 @@
// Main
//////////////////////////////////////////////////////////////////////////
-static KCmdLineOptions sOptions[] =
+static const KCmdLineOptions sOptions[] =
{
{ "winid <argument>", I18N_NOOP("Window ID to which is the fpicker modal"), "0" },
KCmdLineLastOption