Kaydet (Commit) bddd4d45 authored tarafından Takeshi Abe's avatar Takeshi Abe

Mark as const

Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
üst fb7b24dc
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
......@@ -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,
......
......@@ -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},
......
......@@ -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
......
......@@ -60,7 +60,7 @@ namespace xmlscript
// -----------------------------------------------------------------------------
static struct ::cppu::ImplementationEntry s_entries [] =
static const struct ::cppu::ImplementationEntry s_entries [] =
{
{
create_DocumentHandlerImpl, getImplementationName_DocumentHandlerImpl,
......
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment