summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-07-22 20:57:11 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-07-22 21:03:55 +0900
commitbddd4d45989067e58589519c497e03ff443094e9 (patch)
tree41e4eadda19dab42bd976115eef7562b36e287eb
parentfb7b24dc5affb4f29f61a8716c97370951ccba80 (diff)
Mark as const
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
-rw-r--r--animations/source/animcore/animcore.cxx2
-rw-r--r--basic/source/comp/sbcomp.cxx6
-rw-r--r--basic/source/sbx/sbxvar.cxx2
-rw-r--r--chart2/source/tools/ConfigColorScheme.cxx2
-rw-r--r--chart2/source/tools/ErrorBar.cxx2
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx4
-rw-r--r--xmlscript/source/misc/unoservices.cxx2
-rw-r--r--xmlsecurity/source/xmlsec/nss/secerror.cxx2
8 files changed, 11 insertions, 11 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index 5b83bc0f43a9..90b50625322b 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 20d5262aafb1..32cdabc7067b 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 b6927200fb03..6c4c09b72e6d 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 d1425e9c8dd7..57743923f172 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 932efbc7bb17..14c88fbbb502 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 b941cbd15049..1cf977547d66 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 caad402dbe4b..e0c3a8766399 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 cea78a8dd0e1..eab5b5ebb9fd 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++)
{