animations/source/animcore/animcore.cxx      |    2 +-
 basic/source/comp/sbcomp.cxx                 |    6 +++---
 basic/source/sbx/sbxvar.cxx                  |    2 +-
 chart2/source/tools/ConfigColorScheme.cxx    |    2 +-
 chart2/source/tools/ErrorBar.cxx             |    2 +-
 comphelper/source/misc/docpasswordhelper.cxx |    4 ++--
 xmlscript/source/misc/unoservices.cxx        |    2 +-
 xmlsecurity/source/xmlsec/nss/secerror.cxx   |    2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit bddd4d45989067e58589519c497e03ff443094e9
Author: Takeshi Abe <t...@fixedpoint.jp>
Date:   Mon Jul 22 20:57:11 2013 +0900

    Mark as const
    
    Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351

diff --git a/animations/source/animcore/animcore.cxx 
b/animations/source/animcore/animcore.cxx
index 5b83bc0..90b5062 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -646,7 +646,7 @@ void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) 
throw()
         mpId[nNodeType] = new Sequence< sal_Int8 >( 16 );
         rtl_createUuid( (sal_uInt8 *)mpId[nNodeType]->getArray(), 0, sal_True 
);
 
-        static sal_Int32 type_numbers[] =
+        static const sal_Int32 type_numbers[] =
         {
             7, // CUSTOM
             9, // PAR
diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx
index 20d5262..32cdabc 100644
--- a/basic/source/comp/sbcomp.cxx
+++ b/basic/source/comp/sbcomp.cxx
@@ -245,11 +245,11 @@ static void lcl_lineOut( const char* pStr, const char* 
pPreStr = NULL, const cha
 
 const char* lcl_getSpaces( int nSpaceCount )
 {
-    static sal_Char Spaces[] = "                                               
                                                     "
+    static const sal_Char Spaces[] = "                                         
                                                           "
         "                                                                      
                              "
         "                                                                      
                              ";
-    static int nAvailableSpaceCount = strlen( Spaces );
-    static sal_Char* pSpacesEnd = Spaces + nAvailableSpaceCount;
+    static const int nAvailableSpaceCount = strlen( Spaces );
+    static const sal_Char* pSpacesEnd = Spaces + nAvailableSpaceCount;
 
     if( nSpaceCount > nAvailableSpaceCount )
         nSpaceCount = nAvailableSpaceCount;
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index b692720..6c4c09b 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -244,7 +244,7 @@ void SbxVariable::SetName( const OUString& rName )
 
 const OUString& SbxVariable::GetName( SbxNameType t ) const
 {
-    static char cSuffixes[] = "  %&!#@ $";
+    static const char cSuffixes[] = "  %&!#@ $";
     if( t == SbxNAME_NONE )
     {
         return maName;
diff --git a/chart2/source/tools/ConfigColorScheme.cxx 
b/chart2/source/tools/ConfigColorScheme.cxx
index d1425e9..5774392 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -157,7 +157,7 @@ void ConfigColorScheme::retrieveConfigColors()
         return static_cast< sal_Int32 >( m_aColorSequence[ nIndex % 
m_nNumberOfColors ] );
 
     // fall-back: hard-coded standard colors
-    static sal_Int32 nDefaultColors[] =  {
+    static const sal_Int32 nDefaultColors[] =  {
         0x9999ff, 0x993366, 0xffffcc,
         0xccffff, 0x660066, 0xff8080,
         0x0066cc, 0xccccff, 0x000080,
diff --git a/chart2/source/tools/ErrorBar.cxx b/chart2/source/tools/ErrorBar.cxx
index 932efbc..14c88fb 100644
--- a/chart2/source/tools/ErrorBar.cxx
+++ b/chart2/source/tools/ErrorBar.cxx
@@ -53,7 +53,7 @@ bool lcl_isInternalData( const uno::Reference< 
chart2::data::XLabeledDataSequenc
 
 const SfxItemPropertySet* GetErrorBarPropertySet()
 {
-    static SfxItemPropertyMapEntry aErrorBarPropertyMap_Impl[] =
+    static const SfxItemPropertyMapEntry aErrorBarPropertyMap_Impl[] =
     {
         {MAP_CHAR_LEN("ShowPositiveError"),0,&getBooleanCppuType(), 0, 0},
         {MAP_CHAR_LEN("ShowNegativeError"),1,&getBooleanCppuType(), 0, 0},
diff --git a/comphelper/source/misc/docpasswordhelper.cxx 
b/comphelper/source/misc/docpasswordhelper.cxx
index b941cbd..1cf9775 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -135,7 +135,7 @@ sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const 
OUString& aPassword,
 sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32(
                 const OUString& aUString )
 {
-    static sal_uInt16 pInitialCode[] = {
+    static const sal_uInt16 pInitialCode[] = {
         0xE1F0, // 1
         0x1D0F, // 2
         0xCC9C, // 3
@@ -153,7 +153,7 @@ sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32(
         0x4EC3  // 15
     };
 
-    static sal_uInt16 pEncryptionMatrix[15][7] = {
+    static const sal_uInt16 pEncryptionMatrix[15][7] = {
         { 0xAEFC, 0x4DD9, 0x9BB2, 0x2745, 0x4E8A, 0x9D14, 0x2A09}, // last-14
         { 0x7B61, 0xF6C2, 0xFDA5, 0xEB6B, 0xC6F7, 0x9DCF, 0x2BBF}, // last-13
         { 0x4563, 0x8AC6, 0x05AD, 0x0B5A, 0x16B4, 0x2D68, 0x5AD0}, // last-12
diff --git a/xmlscript/source/misc/unoservices.cxx 
b/xmlscript/source/misc/unoservices.cxx
index caad402..e0c3a87 100644
--- a/xmlscript/source/misc/unoservices.cxx
+++ b/xmlscript/source/misc/unoservices.cxx
@@ -60,7 +60,7 @@ namespace xmlscript
 
     // 
-----------------------------------------------------------------------------
 
-    static struct ::cppu::ImplementationEntry s_entries [] =
+    static const struct ::cppu::ImplementationEntry s_entries [] =
     {
         {
             create_DocumentHandlerImpl, 
getImplementationName_DocumentHandlerImpl,
diff --git a/xmlsecurity/source/xmlsec/nss/secerror.cxx 
b/xmlsecurity/source/xmlsec/nss/secerror.cxx
index cea78a8..eab5b5e 100644
--- a/xmlsecurity/source/xmlsec/nss/secerror.cxx
+++ b/xmlsecurity/source/xmlsec/nss/secerror.cxx
@@ -51,7 +51,7 @@ const ErrDesc allDesc[] = {
 const char *
 getCertError(PRErrorCode errNum)
 {
-    static char sEmpty[] = "";
+    static const char sEmpty[] = "";
     const int numDesc = SAL_N_ELEMENTS(allDesc);
     for (int i = 0; i < numDesc; i++)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to