summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-08-12 09:16:31 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-08-12 09:23:52 +0900
commit12b1d1cda3332a09476f703629fef372c2b06b2a (patch)
tree8846f4bf1c7d60069e3ed79e22ade2c1aeed5f3f
parentcc569401a45e7977aed2aa169b2e2c86d2f06da4 (diff)
Mark as const
Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
-rw-r--r--io/source/TextInputStream/TextInputStream.cxx2
-rw-r--r--io/source/TextOutputStream/TextOutputStream.cxx2
-rw-r--r--io/source/acceptor/acceptor.cxx2
-rw-r--r--io/source/connector/connector.cxx2
-rw-r--r--io/source/stm/factreg.cxx2
-rw-r--r--lingucomponent/source/languageguessing/guesslang.cxx2
-rw-r--r--linguistic/source/gciterator.cxx4
-rw-r--r--linguistic/source/lngprophelp.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpbackgroundstuff.cxx2
-rw-r--r--lotuswordpro/source/filter/lwppttntbl.hxx2
-rw-r--r--odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx2
11 files changed, 12 insertions, 12 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index 0d6645d7d0ba..a5b6de3bff41 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -471,7 +471,7 @@ Sequence< OUString > OTextInputStream::getSupportedServiceNames(void) throw()
using namespace io_TextInputStream;
-static struct ImplementationEntry g_entries[] =
+static const struct ImplementationEntry g_entries[] =
{
{
TextInputStream_CreateInstance, TextInputStream_getImplementationName ,
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index 48db4a93fa00..53487ddb278c 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -271,7 +271,7 @@ Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw()
using namespace io_TextOutputStream;
-static struct ImplementationEntry g_entries[] =
+static const struct ImplementationEntry g_entries[] =
{
{
TextOutputStream_CreateInstance, TextOutputStream_getImplementationName ,
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx
index bf28d7b359ba..8f94584f921b 100644
--- a/io/source/acceptor/acceptor.cxx
+++ b/io/source/acceptor/acceptor.cxx
@@ -311,7 +311,7 @@ namespace io_acceptor
using namespace io_acceptor;
-static struct ImplementationEntry g_entries[] =
+static const struct ImplementationEntry g_entries[] =
{
{
acceptor_CreateInstance, acceptor_getImplementationName ,
diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx
index e6df22775a70..5356f3932b3d 100644
--- a/io/source/connector/connector.cxx
+++ b/io/source/connector/connector.cxx
@@ -216,7 +216,7 @@ namespace stoc_connector
}
using namespace stoc_connector;
-static struct ImplementationEntry g_entries[] =
+static const struct ImplementationEntry g_entries[] =
{
{
connector_CreateInstance, connector_getImplementationName ,
diff --git a/io/source/stm/factreg.cxx b/io/source/stm/factreg.cxx
index 935f2a5c6085..6fb39e7ce0c7 100644
--- a/io/source/stm/factreg.cxx
+++ b/io/source/stm/factreg.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star::registry;
using namespace io_stm;
-static struct ImplementationEntry g_entries[] =
+static const struct ImplementationEntry g_entries[] =
{
{
OPipeImpl_CreateInstance, OPipeImpl_getImplementationName ,
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx
index d8777c6464aa..b5370e7654b1 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.cxx
@@ -401,7 +401,7 @@ Reference< XInterface > SAL_CALL LangGuess_Impl_create(
//#### EXPORTED ### functions to allow for registration and creation of the UNO component
//##################################################################################################
-static struct ::cppu::ImplementationEntry s_component_entries [] =
+static const struct ::cppu::ImplementationEntry s_component_entries [] =
{
{
LangGuess_Impl_create, getImplementationName_LangGuess_Impl,
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index d701126f5c2c..d7382e3c0325 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -76,7 +76,7 @@ static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceName
// white space list: obtained from the fonts.config.txt of a Linux system.
-static sal_Unicode aWhiteSpaces[] =
+static const sal_Unicode aWhiteSpaces[] =
{
0x0020, /* SPACE */
0x00a0, /* NO-BREAK SPACE */
@@ -128,7 +128,7 @@ static sal_Unicode aWhiteSpaces[] =
0xfffb /* INTERLINEAR ANNOTATION TERMINATOR */
};
-static int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] );
+static const int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] );
static bool lcl_IsWhiteSpace( sal_Unicode cChar )
{
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index 79db0f0affa3..bf0125ec2be1 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -51,7 +51,7 @@ static const char *aCH[] =
UPN_IS_USE_DICTIONARY_LIST,
};
-static int nCHCount = sizeof(aCH) / sizeof(aCH[0]);
+static const int nCHCount = sizeof(aCH) / sizeof(aCH[0]);
PropertyChgHelper::PropertyChgHelper(
diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
index 2b9da1c04347..8de00f3ecda1 100644
--- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
+++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx
@@ -87,7 +87,7 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra
if (pPttnArray)
{
assert((2 < btPttnIndex) && (btPttnIndex < 72));
- sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex];
+ const sal_uInt8* pTempArray = s_pLwpPatternTab[btPttnIndex];
for(sal_uInt8 i = 0; i < 32; i++)
{
pPttnArray[i] = (i%4 == 0) ? pTempArray[7-i/4] : 0;
diff --git a/lotuswordpro/source/filter/lwppttntbl.hxx b/lotuswordpro/source/filter/lwppttntbl.hxx
index a2399ac06278..c1dff5af2b9f 100644
--- a/lotuswordpro/source/filter/lwppttntbl.hxx
+++ b/lotuswordpro/source/filter/lwppttntbl.hxx
@@ -62,7 +62,7 @@
#ifndef _LTPATTERNTABLE_HXX
#define _LTPATTERNTABLE_HXX
-static sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name
+static const sal_uInt8 s_pLwpPatternTab[][8] = { //Id Name
{ 0xDF, 0xAF, 0x77, 0x77, 0x77, 0x77, 0xFA, 0xFD },//0 Transparent
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },//1 SolidForeground
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },//2 SolidBackground
diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
index e3c44592af49..33dc4ec4344d 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
@@ -175,7 +175,7 @@ Reference< XInterface > SAL_CALL create_MyService2Impl(
/* shared lib exports implemented without helpers in service_impl1.cxx */
namespace my_sc_impl
{
-static struct ::cppu::ImplementationEntry s_component_entries [] =
+static const struct ::cppu::ImplementationEntry s_component_entries [] =
{
{
create_MyService1Impl, getImplementationName_MyService1Impl,