[Libreoffice-commits] core.git: io/source lingucomponent/source linguistic/source lotuswordpro/source odk/examples
Takeshi Abe
tabe at fixedpoint.jp
Sun Aug 11 17:28:16 PDT 2013
io/source/TextInputStream/TextInputStream.cxx | 2 +-
io/source/TextOutputStream/TextOutputStream.cxx | 2 +-
io/source/acceptor/acceptor.cxx | 2 +-
io/source/connector/connector.cxx | 2 +-
io/source/stm/factreg.cxx | 2 +-
lingucomponent/source/languageguessing/guesslang.cxx | 2 +-
linguistic/source/gciterator.cxx | 4 ++--
linguistic/source/lngprophelp.cxx | 2 +-
lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 2 +-
lotuswordpro/source/filter/lwppttntbl.hxx | 2 +-
odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx | 2 +-
11 files changed, 12 insertions(+), 12 deletions(-)
New commits:
commit 12b1d1cda3332a09476f703629fef372c2b06b2a
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon Aug 12 09:16:31 2013 +0900
Mark as const
Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index 0d6645d..a5b6de3 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 48db4a9..53487dd 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 bf28d7b..8f94584 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 e6df227..5356f39 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 935f2a5..6fb39e7 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 d8777c6..b5370e7 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 d701126..d7382e3 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 79db0f0..bf0125e 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 2b9da1c..8de00f3 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 a2399ac..c1dff5a 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 e3c4459..33dc4ec 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,
More information about the Libreoffice-commits
mailing list