summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-07-17 14:58:15 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-07-17 16:44:10 +0900
commit029c630a66ae8225e3a7e904d3085dbf79f0d64f (patch)
treec31cff933d02f9ac82af3c08a3cbaa2264872eb5 /writerfilter
parentn#820077: Import images with duotone filter. (diff)
downloadcore-029c630a66ae8225e3a7e904d3085dbf79f0d64f.tar.gz
core-029c630a66ae8225e3a7e904d3085dbf79f0d64f.zip
Mark as const
Change-Id: I59ac01eacf31061093b83ab3057963de7ea4a2e7
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/GraphicHelpers.cxx8
-rw-r--r--writerfilter/source/dmapper/NumberingManager.cxx2
-rw-r--r--writerfilter/source/dmapper/PropertyMap.cxx2
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx2
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/writerfilter/source/dmapper/GraphicHelpers.cxx b/writerfilter/source/dmapper/GraphicHelpers.cxx
index 9a259b9e73e8..d2e64d23e143 100644
--- a/writerfilter/source/dmapper/GraphicHelpers.cxx
+++ b/writerfilter/source/dmapper/GraphicHelpers.cxx
@@ -73,7 +73,7 @@ void PositionHandler::lcl_attribute( Id aName, Value& rVal )
case NS_ooxml::LN_CT_PosV_relativeFrom:
{
// TODO There are some other unhandled values
- static Id pVertRelValues[] =
+ static const Id pVertRelValues[] =
{
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromV_margin,
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromV_page,
@@ -81,7 +81,7 @@ void PositionHandler::lcl_attribute( Id aName, Value& rVal )
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromV_line
};
- static sal_Int16 pVertRelations[] =
+ static const sal_Int16 pVertRelations[] =
{
text::RelOrientation::PAGE_PRINT_AREA,
text::RelOrientation::PAGE_FRAME,
@@ -99,7 +99,7 @@ void PositionHandler::lcl_attribute( Id aName, Value& rVal )
case NS_ooxml::LN_CT_PosH_relativeFrom:
{
// TODO There are some other unhandled values
- static Id pHoriRelValues[] =
+ static const Id pHoriRelValues[] =
{
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromH_margin,
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromH_page,
@@ -107,7 +107,7 @@ void PositionHandler::lcl_attribute( Id aName, Value& rVal )
NS_ooxml::LN_Value_wordprocessingDrawing_ST_RelFromH_character
};
- static sal_Int16 pHoriRelations[] =
+ static const sal_Int16 pHoriRelations[] =
{
text::RelOrientation::PAGE_PRINT_AREA,
text::RelOrientation::PAGE_FRAME,
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 97cbb4f45517..587f8b3515b9 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -1029,7 +1029,7 @@ void ListsManager::lcl_sprm( Sprm& rSprm )
break;
case NS_ooxml::LN_CT_Lvl_lvlJc:
{
- static sal_Int16 aWWAlignments[ ] =
+ static const sal_Int16 aWWAlignments[ ] =
{
text::HoriOrientation::LEFT,
text::HoriOrientation::CENTER,
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index f526bc10e582..de0e3adca090 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -667,7 +667,7 @@ void SectionPropertyMap::CopyLastHeaderFooter( bool bFirstPage, DomainMapper_Imp
try {
// Loop over the Header and Footer properties to copy them
- static PropertyIds aProperties[] =
+ static const PropertyIds aProperties[] =
{
PROP_HEADER_TEXT,
PROP_FOOTER_TEXT,
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 77a5d310f72d..1f09135873bd 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -4922,7 +4922,7 @@ RTFSprms RTFFrame::getSprms()
{
RTFSprms sprms;
- static Id pNames[] =
+ static const Id pNames[] =
{
NS_ooxml::LN_CT_FramePr_x,
NS_ooxml::LN_CT_FramePr_y,
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 0494ac04813c..78c34d9185f4 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -530,7 +530,7 @@ void RTFSdrImport::resolve(RTFShape& rShape, bool bClose)
}
else
{
- static OUString aBorders[] = {
+ static const OUString aBorders[] = {
OUString("TopBorder"), OUString("LeftBorder"), OUString("BottomBorder"), OUString("RightBorder")
};
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aBorders); ++i)