summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-07-09 09:27:34 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-07-09 09:33:40 +0900
commitb1c4046379b888bf3a82fbd31287ee3a68439968 (patch)
tree32fa198684d8482a3843db906bed67bc061b5e37 /sc/source/ui
parent4374e5c80525cd1a9d9ab04714ccbf2543a912ce (diff)
Mark as const
Change-Id: I2abf0a6887f916111895d172b0dffd54901c5aa2
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/dbgui/csvgrid.cxx4
-rw-r--r--sc/source/ui/unoobj/addruno.cxx4
-rw-r--r--sc/source/ui/unoobj/afmtuno.cxx4
-rw-r--r--sc/source/ui/unoobj/appluno.cxx2
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx14
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx4
-rw-r--r--sc/source/ui/unoobj/confuno.cxx2
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx6
-rw-r--r--sc/source/ui/unoobj/datauno.cxx6
-rw-r--r--sc/source/ui/unoobj/defltuno.cxx2
-rw-r--r--sc/source/ui/unoobj/docuno.cxx6
-rw-r--r--sc/source/ui/unoobj/fielduno.cxx10
-rw-r--r--sc/source/ui/unoobj/fmtuno.cxx2
-rw-r--r--sc/source/ui/unoobj/linkuno.cxx2
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx4
-rw-r--r--sc/source/ui/unoobj/notesuno.cxx2
-rw-r--r--sc/source/ui/unoobj/optuno.cxx2
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx2
-rw-r--r--sc/source/ui/unoobj/srchuno.cxx2
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx8
-rw-r--r--sc/source/ui/unoobj/targuno.cxx2
-rw-r--r--sc/source/ui/unoobj/tokenuno.cxx2
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx4
23 files changed, 48 insertions, 48 deletions
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index e1595b12c821..3418d53f9a70 100644
--- a/sc/source/ui/dbgui/csvgrid.cxx
+++ b/sc/source/ui/dbgui/csvgrid.cxx
@@ -509,9 +509,9 @@ const String& ScCsvGrid::GetColumnTypeName( sal_uInt32 nColIndex ) const
static sal_uInt8 lcl_GetExtColumnType( sal_Int32 nIntType )
{
- static sal_uInt8 pExtTypes[] =
+ static const sal_uInt8 pExtTypes[] =
{ SC_COL_STANDARD, SC_COL_TEXT, SC_COL_DMY, SC_COL_MDY, SC_COL_YMD, SC_COL_ENGLISH, SC_COL_SKIP };
- static sal_Int32 nExtTypeCount = SAL_N_ELEMENTS(pExtTypes);
+ static const sal_Int32 nExtTypeCount = SAL_N_ELEMENTS(pExtTypes);
return pExtTypes[ ((0 <= nIntType) && (nIntType < nExtTypeCount)) ? nIntType : 0 ];
}
diff --git a/sc/source/ui/unoobj/addruno.cxx b/sc/source/ui/unoobj/addruno.cxx
index 3b1890d9e0b1..0fe5201985dc 100644
--- a/sc/source/ui/unoobj/addruno.cxx
+++ b/sc/source/ui/unoobj/addruno.cxx
@@ -99,7 +99,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScAddressConversionObj::getProp
if ( bIsRange )
{
- static SfxItemPropertyMapEntry aPropertyMap[] =
+ static const SfxItemPropertyMapEntry aPropertyMap[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ADDRESS), 0, &getCppuType((table::CellRangeAddress*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_PERSREPR), 0, &getCppuType((OUString*)0), 0, 0 },
@@ -114,7 +114,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScAddressConversionObj::getProp
}
else
{
- static SfxItemPropertyMapEntry aPropertyMap[] =
+ static const SfxItemPropertyMapEntry aPropertyMap[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ADDRESS), 0, &getCppuType((table::CellAddress*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_PERSREPR), 0, &getCppuType((OUString*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx
index 4ebb1d2cbbf6..091661cddb2e 100644
--- a/sc/source/ui/unoobj/afmtuno.cxx
+++ b/sc/source/ui/unoobj/afmtuno.cxx
@@ -71,7 +71,7 @@ using namespace ::com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetAutoFormatMap()
{
- static SfxItemPropertyMapEntry aAutoFormatMap_Impl[] =
+ static const SfxItemPropertyMapEntry aAutoFormatMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_INCBACK), 0, &::getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_INCBORD), 0, &::getBooleanCppuType(), 0, 0 },
@@ -89,7 +89,7 @@ static const SfxItemPropertyMapEntry* lcl_GetAutoFormatMap()
static const SfxItemPropertyMapEntry* lcl_GetAutoFieldMap()
{
- static SfxItemPropertyMapEntry aAutoFieldMap_Impl[] =
+ static const SfxItemPropertyMapEntry aAutoFieldMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_CELLBACK), ATTR_BACKGROUND, &::getCppuType((const sal_Int32*)0), 0, MID_BACK_COLOR },
{MAP_CHAR_LEN(SC_UNONAME_CCOLOR), ATTR_FONT_COLOR, &::getCppuType((const sal_Int32*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index 2f4263892431..852c23897751 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -137,7 +137,7 @@ extern uno::Reference< uno::XInterface > SAL_CALL ScXMLOasisExport_Settings_crea
static const SfxItemPropertyMapEntry* lcl_GetSettingsPropertyMap()
{
- static SfxItemPropertyMapEntry aSettingsPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aSettingsPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_DOAUTOCP), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNONAME_ENTERED), 0, &getBooleanCppuType(), 0, 0},
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 3a8f7cd2f271..d60140312156 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -153,7 +153,7 @@ public:
static const SfxItemPropertySet* lcl_GetCellsPropertySet()
{
- static SfxItemPropertyMapEntry aCellsPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aCellsPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -262,7 +262,7 @@ static const SfxItemPropertySet* lcl_GetCellsPropertySet()
static const SfxItemPropertySet* lcl_GetRangePropertySet()
{
- static SfxItemPropertyMapEntry aRangePropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aRangePropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -372,7 +372,7 @@ static const SfxItemPropertySet* lcl_GetRangePropertySet()
static const SfxItemPropertySet* lcl_GetCellPropertySet()
{
- static SfxItemPropertyMapEntry aCellPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aCellPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -486,7 +486,7 @@ static const SfxItemPropertySet* lcl_GetCellPropertySet()
static const SfxItemPropertySet* lcl_GetColumnPropertySet()
{
- static SfxItemPropertyMapEntry aColumnPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aColumnPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -598,7 +598,7 @@ static const SfxItemPropertySet* lcl_GetColumnPropertySet()
static const SfxItemPropertySet* lcl_GetRowPropertySet()
{
- static SfxItemPropertyMapEntry aRowPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aRowPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -711,7 +711,7 @@ static const SfxItemPropertySet* lcl_GetRowPropertySet()
static const SfxItemPropertySet* lcl_GetSheetPropertySet()
{
- static SfxItemPropertyMapEntry aSheetPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aSheetPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ABSNAME), SC_WID_UNO_ABSNAME, &getCppuType((OUString*)0), 0 | beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
@@ -835,7 +835,7 @@ static const SfxItemPropertySet* lcl_GetSheetPropertySet()
static const SfxItemPropertyMapEntry* lcl_GetEditPropertyMap()
{
- static SfxItemPropertyMapEntry aEditPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aEditPropertyMap_Impl[] =
{
SVX_UNOEDIT_CHAR_PROPERTIES,
SVX_UNOEDIT_FONT_PROPERTIES,
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 975953318373..e3e95623ce78 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -77,7 +77,7 @@ namespace
{
const SfxItemPropertyMapEntry* lcl_GetDataProviderPropertyMap()
{
- static SfxItemPropertyMapEntry aDataProviderPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDataProviderPropertyMap_Impl[] =
{
{ MAP_CHAR_LEN(SC_UNONAME_INCLUDEHIDDENCELLS), 0, &getBooleanCppuType(), 0, 0 },
{ MAP_CHAR_LEN(SC_UNONAME_USE_INTERNAL_DATA_PROVIDER), 0, &getBooleanCppuType(), 0, 0 },
@@ -88,7 +88,7 @@ const SfxItemPropertyMapEntry* lcl_GetDataProviderPropertyMap()
const SfxItemPropertyMapEntry* lcl_GetDataSequencePropertyMap()
{
- static SfxItemPropertyMapEntry aDataSequencePropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDataSequencePropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_HIDDENVALUES), 0, &getCppuType((uno::Sequence<sal_Int32>*)0 ), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ROLE), 0, &getCppuType((::com::sun::star::chart2::data::DataSequenceRole*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx
index a6aa3321b9b3..a6f79e308eef 100644
--- a/sc/source/ui/unoobj/confuno.cxx
+++ b/sc/source/ui/unoobj/confuno.cxx
@@ -44,7 +44,7 @@ using namespace com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetConfigPropertyMap()
{
- static SfxItemPropertyMapEntry aConfigPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aConfigPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_SHOWZERO), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNO_SHOWNOTES), 0, &getBooleanCppuType(), 0, 0},
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 8e960e0d75bc..c5912cbd2765 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -93,7 +93,7 @@ namespace {
const SfxItemPropertyMapEntry* lcl_GetDataPilotDescriptorBaseMap()
{
- static SfxItemPropertyMapEntry aDataPilotDescriptorBaseMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDataPilotDescriptorBaseMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_DP_COLGRAND), 0, &getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNO_DP_DRILLDOWN), 0, &getBooleanCppuType(), 0, 0 },
@@ -115,7 +115,7 @@ const SfxItemPropertyMapEntry* lcl_GetDataPilotDescriptorBaseMap()
const SfxItemPropertyMapEntry* lcl_GetDataPilotFieldMap()
{
using namespace ::com::sun::star::beans::PropertyAttribute;
- static SfxItemPropertyMapEntry aDataPilotFieldMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDataPilotFieldMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_AUTOSHOW), 0, &getCppuType((DataPilotFieldAutoShowInfo*)0), MAYBEVOID, 0 },
{MAP_CHAR_LEN(SC_UNONAME_FUNCTION), 0, &getCppuType((GeneralFunction*)0), 0, 0 },
@@ -142,7 +142,7 @@ const SfxItemPropertyMapEntry* lcl_GetDataPilotFieldMap()
const SfxItemPropertyMapEntry* lcl_GetDataPilotItemMap()
{
- static SfxItemPropertyMapEntry aDataPilotItemMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDataPilotItemMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ISHIDDEN), 0, &getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_POS), 0, &getCppuType((sal_Int32*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx
index 079e97b5c002..df93ca452569 100644
--- a/sc/source/ui/unoobj/datauno.cxx
+++ b/sc/source/ui/unoobj/datauno.cxx
@@ -65,7 +65,7 @@ static const SfxItemPropertyMapEntry* lcl_GetSubTotalPropertyMap()
{
// some old property names are for 5.2 compatibility
- static SfxItemPropertyMapEntry aSubTotalPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aSubTotalPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_BINDFMT), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNONAME_CASE), 0, &getBooleanCppuType(), 0, 0},
@@ -86,7 +86,7 @@ static const SfxItemPropertyMapEntry* lcl_GetSubTotalPropertyMap()
static const SfxItemPropertyMapEntry* lcl_GetFilterPropertyMap()
{
- static SfxItemPropertyMapEntry aFilterPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aFilterPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_CONTHDR), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNONAME_COPYOUT), 0, &getBooleanCppuType(), 0, 0},
@@ -104,7 +104,7 @@ static const SfxItemPropertyMapEntry* lcl_GetFilterPropertyMap()
static const SfxItemPropertyMapEntry* lcl_GetDBRangePropertyMap()
{
- static SfxItemPropertyMapEntry aDBRangePropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDBRangePropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_AUTOFLT), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNONAME_FLTCRT), 0, &getCppuType((table::CellRangeAddress*)0), 0, 0},
diff --git a/sc/source/ui/unoobj/defltuno.cxx b/sc/source/ui/unoobj/defltuno.cxx
index 5afa88f7e900..992accaf0bfd 100644
--- a/sc/source/ui/unoobj/defltuno.cxx
+++ b/sc/source/ui/unoobj/defltuno.cxx
@@ -42,7 +42,7 @@ using namespace ::com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetDocDefaultsMap()
{
- static SfxItemPropertyMapEntry aDocDefaultsMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDocDefaultsMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_CFCHARS), ATTR_FONT, &getCppuType((sal_Int16*)0), 0, MID_FONT_CHAR_SET },
{MAP_CHAR_LEN(SC_UNO_CJK_CFCHARS), ATTR_CJK_FONT, &getCppuType((sal_Int16*)0), 0, MID_FONT_CHAR_SET },
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index e089f3b96992..ed622056bcfd 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -105,7 +105,7 @@ using namespace com::sun::star;
//! umbenennen, sind nicht mehr nur Options
static const SfxItemPropertyMapEntry* lcl_GetDocOptPropertyMap()
{
- static SfxItemPropertyMapEntry aDocOptPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aDocOptPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_APPLYFMDES), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNO_AREALINKS), 0, &getCppuType((uno::Reference<sheet::XAreaLinks>*)0), 0, 0},
@@ -157,7 +157,7 @@ static const SfxItemPropertyMapEntry* lcl_GetDocOptPropertyMap()
static const SfxItemPropertyMapEntry* lcl_GetColumnsPropertyMap()
{
- static SfxItemPropertyMapEntry aColumnsPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aColumnsPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_MANPAGE), 0, &getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_NEWPAGE), 0, &getBooleanCppuType(), 0, 0 },
@@ -171,7 +171,7 @@ static const SfxItemPropertyMapEntry* lcl_GetColumnsPropertyMap()
static const SfxItemPropertyMapEntry* lcl_GetRowsPropertyMap()
{
- static SfxItemPropertyMapEntry aRowsPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aRowsPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_CELLHGT), 0, &getCppuType((sal_Int32*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_CELLFILT), 0, &getBooleanCppuType(), 0, 0 },
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx
index 24b12f3fd4c7..abbbc2a25bf2 100644
--- a/sc/source/ui/unoobj/fielduno.cxx
+++ b/sc/source/ui/unoobj/fielduno.cxx
@@ -53,7 +53,7 @@ namespace {
const SfxItemPropertySet* getDateTimePropertySet()
{
- static SfxItemPropertyMapEntry aMapContent[] =
+ static const SfxItemPropertyMapEntry aMapContent[] =
{
{ MAP_CHAR_LEN(SC_UNONAME_DATETIME), 0, &getCppuType((const util::DateTime*)0), 0, 0 },
{ MAP_CHAR_LEN(SC_UNONAME_ISFIXED), 0, &getBooleanCppuType(), 0, 0 },
@@ -67,7 +67,7 @@ const SfxItemPropertySet* getDateTimePropertySet()
const SfxItemPropertySet* getEmptyPropertySet()
{
- static SfxItemPropertyMapEntry aMapContent[] =
+ static const SfxItemPropertyMapEntry aMapContent[] =
{
{0,0,0,0,0,0}
};
@@ -77,7 +77,7 @@ const SfxItemPropertySet* getEmptyPropertySet()
const SfxItemPropertySet* lcl_GetURLPropertySet()
{
- static SfxItemPropertyMapEntry aURLPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aURLPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPE), 0, &getCppuType((text::TextContentAnchorType*)0), beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPES), 0, &getCppuType((uno::Sequence<text::TextContentAnchorType>*)0), beans::PropertyAttribute::READONLY, 0 },
@@ -93,7 +93,7 @@ const SfxItemPropertySet* lcl_GetURLPropertySet()
const SfxItemPropertySet* lcl_GetHeaderFieldPropertySet()
{
- static SfxItemPropertyMapEntry aHeaderFieldPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aHeaderFieldPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPE), 0, &getCppuType((text::TextContentAnchorType*)0), beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPES), 0, &getCppuType((uno::Sequence<text::TextContentAnchorType>*)0), beans::PropertyAttribute::READONLY, 0 },
@@ -106,7 +106,7 @@ const SfxItemPropertySet* lcl_GetHeaderFieldPropertySet()
const SfxItemPropertySet* lcl_GetFileFieldPropertySet()
{
- static SfxItemPropertyMapEntry aFileFieldPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aFileFieldPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPE), 0, &getCppuType((text::TextContentAnchorType*)0), beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNONAME_ANCTYPES), 0, &getCppuType((uno::Sequence<text::TextContentAnchorType>*)0), beans::PropertyAttribute::READONLY, 0 },
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx
index 67a2ad82323f..6b38aee605ee 100644
--- a/sc/source/ui/unoobj/fmtuno.cxx
+++ b/sc/source/ui/unoobj/fmtuno.cxx
@@ -46,7 +46,7 @@ using namespace ::formula;
static const SfxItemPropertyMapEntry* lcl_GetValidatePropertyMap()
{
- static SfxItemPropertyMapEntry aValidatePropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aValidatePropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ERRALSTY), 0, &getCppuType((sheet::ValidationAlertStyle*)0), 0, 0},
{MAP_CHAR_LEN(SC_UNONAME_ERRMESS), 0, &getCppuType((OUString*)0), 0, 0},
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index 0531ff96dd06..f2f16b7e1191 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -53,7 +53,7 @@ using ::std::vector;
// fuer Sheet- und Area-Links benutzt:
static const SfxItemPropertyMapEntry* lcl_GetSheetLinkMap()
{
- static SfxItemPropertyMapEntry aSheetLinkMap_Impl[] =
+ static const SfxItemPropertyMapEntry aSheetLinkMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_FILTER), 0, &getCppuType((OUString*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_FILTOPT), 0, &getCppuType((OUString*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 659f6a49117f..0ec46ba10121 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -49,7 +49,7 @@ using ::com::sun::star::uno::Any;
static const SfxItemPropertyMapEntry* lcl_GetNamedRangeMap()
{
- static SfxItemPropertyMapEntry aNamedRangeMap_Impl[] =
+ static const SfxItemPropertyMapEntry aNamedRangeMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_LINKDISPBIT), 0, &getCppuType((uno::Reference<awt::XBitmap>*)0), beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNO_LINKDISPNAME), 0, &getCppuType((OUString*)0), beans::PropertyAttribute::READONLY, 0 },
@@ -62,7 +62,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNamedRangeMap()
static const SfxItemPropertyMapEntry* lcl_GetNamedRangesMap()
{
- static SfxItemPropertyMapEntry aNamedRangesMap_Impl[] =
+ static const SfxItemPropertyMapEntry aNamedRangesMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_MODIFY_BROADCAST), 0, &getBooleanCppuType(), 0, 0 },
{0,0,0,0,0,0}
diff --git a/sc/source/ui/unoobj/notesuno.cxx b/sc/source/ui/unoobj/notesuno.cxx
index ad1787b055b5..be5bc1f107ef 100644
--- a/sc/source/ui/unoobj/notesuno.cxx
+++ b/sc/source/ui/unoobj/notesuno.cxx
@@ -42,7 +42,7 @@ using namespace com::sun::star;
static const SvxItemPropertySet* lcl_GetAnnotationPropertySet()
{
- static SfxItemPropertyMapEntry aAnnotationPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aAnnotationPropertyMap_Impl[] =
{
SVX_UNOEDIT_CHAR_PROPERTIES,
SVX_UNOEDIT_FONT_PROPERTIES,
diff --git a/sc/source/ui/unoobj/optuno.cxx b/sc/source/ui/unoobj/optuno.cxx
index 8efb9e3c395a..6dae636f87bb 100644
--- a/sc/source/ui/unoobj/optuno.cxx
+++ b/sc/source/ui/unoobj/optuno.cxx
@@ -31,7 +31,7 @@ using namespace com::sun::star;
//------------------------------------------------------------------------
const SfxItemPropertyMapEntry* ScDocOptionsHelper::GetPropertyMap()
{
- static SfxItemPropertyMapEntry aMap[] =
+ static const SfxItemPropertyMapEntry aMap[] =
{
{MAP_CHAR_LEN(SC_UNO_CALCASSHOWN), PROP_UNO_CALCASSHOWN , &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNO_DEFTABSTOP), PROP_UNO_DEFTABSTOP , &getCppuType((sal_Int16*)0), 0, 0},
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 8c71f3f74112..ba34f21787a7 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -53,7 +53,7 @@ static ScShapeImplementationIdMap aImplementationIdMap;
static const SfxItemPropertyMapEntry* lcl_GetShapeMap()
{
- static SfxItemPropertyMapEntry aShapeMap_Impl[] =
+ static const SfxItemPropertyMapEntry aShapeMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ANCHOR), 0, &getCppuType((uno::Reference<uno::XInterface>*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_HORIPOS), 0, &getCppuType((sal_Int32*)0), 0, 0 },
diff --git a/sc/source/ui/unoobj/srchuno.cxx b/sc/source/ui/unoobj/srchuno.cxx
index db59a3444464..6e9cb8042705 100644
--- a/sc/source/ui/unoobj/srchuno.cxx
+++ b/sc/source/ui/unoobj/srchuno.cxx
@@ -41,7 +41,7 @@ using namespace com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetSearchPropertyMap()
{
- static SfxItemPropertyMapEntry aSearchPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aSearchPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_SRCHBACK), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNO_SRCHBYROW), 0, &getBooleanCppuType(), 0, 0},
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 246639d0c609..163c5a8aba6f 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -71,7 +71,7 @@ using namespace ::com::sun::star;
static const SfxItemPropertySet* lcl_GetCellStyleSet()
{
- static SfxItemPropertyMapEntry aCellStyleMap_Impl[] =
+ static const SfxItemPropertyMapEntry aCellStyleMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNONAME_ASIANVERT),ATTR_VERTICAL_ASIAN,&getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_BOTTBORDER),ATTR_BORDER, &::getCppuType((const table::BorderLine*)0), 0, BOTTOM_BORDER | CONVERT_TWIPS },
@@ -171,7 +171,7 @@ static const SfxItemPropertySet* lcl_GetCellStyleSet()
static const SfxItemPropertySet * lcl_GetPageStyleSet()
{
- static SfxItemPropertyMapEntry aPageStyleMap_Impl[] =
+ static const SfxItemPropertyMapEntry aPageStyleMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_PAGE_BACKCOLOR), ATTR_BACKGROUND, &::getCppuType((const sal_Int32*)0), 0, MID_BACK_COLOR },
{MAP_CHAR_LEN(SC_UNO_PAGE_GRAPHICFILT), ATTR_BACKGROUND, &::getCppuType((const OUString*)0), 0, MID_GRAPHIC_FILTER },
@@ -292,7 +292,7 @@ static const SfxItemPropertySet * lcl_GetPageStyleSet()
static const SfxItemPropertyMap* lcl_GetHeaderStyleMap()
{
- static SfxItemPropertyMapEntry aHeaderStyleMap_Impl[] =
+ static const SfxItemPropertyMapEntry aHeaderStyleMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_PAGE_HDRBACKCOL), ATTR_BACKGROUND, &::getCppuType((const sal_Int32*)0), 0, MID_BACK_COLOR },
{MAP_CHAR_LEN(SC_UNO_PAGE_HDRGRFFILT), ATTR_BACKGROUND, &::getCppuType((const OUString*)0), 0, MID_GRAPHIC_FILTER },
@@ -331,7 +331,7 @@ static const SfxItemPropertyMap* lcl_GetHeaderStyleMap()
static const SfxItemPropertyMap* lcl_GetFooterStyleMap()
{
- static SfxItemPropertyMapEntry aFooterStyleMap_Impl[] =
+ static const SfxItemPropertyMapEntry aFooterStyleMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_PAGE_FTRBACKCOL), ATTR_BACKGROUND, &::getCppuType((const sal_Int32*)0), 0, MID_BACK_COLOR },
{MAP_CHAR_LEN(SC_UNO_PAGE_FTRGRFFILT), ATTR_BACKGROUND, &::getCppuType((const OUString*)0), 0, MID_GRAPHIC_FILTER },
diff --git a/sc/source/ui/unoobj/targuno.cxx b/sc/source/ui/unoobj/targuno.cxx
index df4479931aaf..fe1de8d019cf 100644
--- a/sc/source/ui/unoobj/targuno.cxx
+++ b/sc/source/ui/unoobj/targuno.cxx
@@ -50,7 +50,7 @@ sal_uInt16 nTypeResIds[SC_LINKTARGETTYPE_COUNT] =
static const SfxItemPropertyMapEntry* lcl_GetLinkTargetMap()
{
- static SfxItemPropertyMapEntry aLinkTargetMap_Impl[] =
+ static const SfxItemPropertyMapEntry aLinkTargetMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_LINKDISPBIT), 0, &getCppuType((const uno::Reference<awt::XBitmap>*)0), beans::PropertyAttribute::READONLY, 0 },
{MAP_CHAR_LEN(SC_UNO_LINKDISPNAME), 0, &getCppuType((const OUString*)0), beans::PropertyAttribute::READONLY, 0 },
diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx
index bb49faf9d49d..f4d53d530a10 100644
--- a/sc/source/ui/unoobj/tokenuno.cxx
+++ b/sc/source/ui/unoobj/tokenuno.cxx
@@ -49,7 +49,7 @@ using namespace ::com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetFormulaParserMap()
{
- static SfxItemPropertyMapEntry aFormulaParserMap_Impl[] =
+ static const SfxItemPropertyMapEntry aFormulaParserMap_Impl[] =
{
{MAP_CHAR_LEN(SC_UNO_COMPILEFAP), 0, &getBooleanCppuType(), 0, 0 },
{MAP_CHAR_LEN(SC_UNO_COMPILEENGLISH), 0, &getBooleanCppuType(), 0, 0 },
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 6fc5d69ad99c..ebfc48d801fd 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -81,7 +81,7 @@ using namespace com::sun::star;
static const SfxItemPropertyMapEntry* lcl_GetViewOptPropertyMap()
{
- static SfxItemPropertyMapEntry aViewOptPropertyMap_Impl[] =
+ static const SfxItemPropertyMapEntry aViewOptPropertyMap_Impl[] =
{
{MAP_CHAR_LEN(OLD_UNO_COLROWHDR), 0, &getBooleanCppuType(), 0, 0},
{MAP_CHAR_LEN(SC_UNO_GRIDCOLOR), 0, &getCppuType((sal_Int32*)0), 0, 0},
@@ -1039,7 +1039,7 @@ sal_Bool SAL_CALL ScTabViewObj::hasElements() throw(uno::RuntimeException)
ScViewPaneObj* ScTabViewObj::GetObjectByIndex_Impl(sal_uInt16 nIndex) const
{
- static ScSplitPos ePosHV[4] =
+ static const ScSplitPos ePosHV[4] =
{ SC_SPLIT_TOPLEFT, SC_SPLIT_BOTTOMLEFT, SC_SPLIT_TOPRIGHT, SC_SPLIT_BOTTOMRIGHT };
ScTabViewShell* pViewSh = GetViewShell();