diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-22 20:57:11 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-07-22 21:03:55 +0900 |
commit | bddd4d45989067e58589519c497e03ff443094e9 (patch) | |
tree | 41e4eadda19dab42bd976115eef7562b36e287eb /basic | |
parent | n#825976: Table of Illustration has hyperlinks by default like TOC (diff) | |
download | core-bddd4d45989067e58589519c497e03ff443094e9.tar.gz core-bddd4d45989067e58589519c497e03ff443094e9.zip |
Mark as const
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/sbcomp.cxx | 6 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
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; |