summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-02 14:28:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-02 15:35:31 +0200
commited5e44054c4c5c0fd7d9555dba777df250b7f301 (patch)
tree412937bcb45329b37ead6f812455a7d0cb3a286a /oox
parent221107a1853c93e69debb42b2106978379d5ae60 (diff)
loplugin:constmethod in oox
Change-Id: Ie6c9c60288accf7096288aa67d091548e43687cd Reviewed-on: https://gerrit.libreoffice.org/78397 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/drawingml/chart/converterbase.hxx2
-rw-r--r--oox/inc/drawingml/customshapeproperties.hxx2
-rw-r--r--oox/inc/drawingml/table/tablecell.hxx2
-rw-r--r--oox/source/drawingml/table/tableproperties.cxx2
-rw-r--r--oox/source/export/drawingml.cxx4
-rw-r--r--oox/source/helper/grabbagstack.cxx2
-rw-r--r--oox/source/ole/vbaexport.cxx6
-rw-r--r--oox/source/ppt/pptshape.cxx2
-rw-r--r--oox/source/ppt/slidepersist.cxx2
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx2
10 files changed, 13 insertions, 13 deletions
diff --git a/oox/inc/drawingml/chart/converterbase.hxx b/oox/inc/drawingml/chart/converterbase.hxx
index afd0f097f63c..32e3e95d550e 100644
--- a/oox/inc/drawingml/chart/converterbase.hxx
+++ b/oox/inc/drawingml/chart/converterbase.hxx
@@ -141,7 +141,7 @@ public:
void convertFromModel(
const css::uno::Reference< css::drawing::XShape >& rxShape,
double fRotationAngle );
- bool getAutoLayout(){return mrModel.mbAutoLayout;}
+ bool getAutoLayout() const {return mrModel.mbAutoLayout;}
};
diff --git a/oox/inc/drawingml/customshapeproperties.hxx b/oox/inc/drawingml/customshapeproperties.hxx
index ddd29199ff41..19ec66f624ce 100644
--- a/oox/inc/drawingml/customshapeproperties.hxx
+++ b/oox/inc/drawingml/customshapeproperties.hxx
@@ -105,7 +105,7 @@ public:
sal_Int32 getShapePresetType() const { return mnShapePresetType; }
css::uno::Sequence< sal_Int8 > const & getShapePresetTypeName() const;
void setShapePresetType( sal_Int32 nShapePresetType ){ mnShapePresetType = nShapePresetType; };
- bool getShapeTypeOverride(){ return mbShapeTypeOverride; };
+ bool getShapeTypeOverride() const { return mbShapeTypeOverride; };
void setShapeTypeOverride( bool bShapeTypeOverride ) { mbShapeTypeOverride = bShapeTypeOverride; };
std::vector< CustomShapeGuide >& getAdjustmentGuideList(){ return maAdjustmentGuideList; };
diff --git a/oox/inc/drawingml/table/tablecell.hxx b/oox/inc/drawingml/table/tablecell.hxx
index c803d86707b8..8955f7a47889 100644
--- a/oox/inc/drawingml/table/tablecell.hxx
+++ b/oox/inc/drawingml/table/tablecell.hxx
@@ -71,7 +71,7 @@ public:
void setHorzOverflowToken( sal_Int32 nToken ){ mnHorzOverflowToken = nToken; };
void setTextBody( const oox::drawingml::TextBodyPtr& pTextBody ){ mpTextBody = pTextBody; };
- const oox::drawingml::TextBodyPtr& getTextBody(){ return mpTextBody; };
+ const oox::drawingml::TextBodyPtr& getTextBody() const { return mpTextBody; };
void pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase,
const ::oox::drawingml::TextListStylePtr& pMasterTextListStyle,
diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx
index 49acda6c25cf..b6f9a8a59cfc 100644
--- a/oox/source/drawingml/table/tableproperties.cxx
+++ b/oox/source/drawingml/table/tableproperties.cxx
@@ -99,7 +99,7 @@ namespace
}
//for pptx just has table style id
-static void SetTableStyleProperties(std::unique_ptr<TableStyle> &pTableStyle , sal_Int32 tblFillClr, sal_Int32 tblTextClr, sal_Int32 lineBdrClr)
+static void SetTableStyleProperties(const std::unique_ptr<TableStyle> &pTableStyle , sal_Int32 tblFillClr, sal_Int32 tblTextClr, sal_Int32 lineBdrClr)
{
//whole table fill style and color
oox::drawingml::FillPropertiesPtr pWholeTabFillProperties( new oox::drawingml::FillProperties );
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 32dd9c02588d..24aa6fde79b5 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1027,7 +1027,7 @@ void DrawingML::WriteOutline( const Reference<XPropertySet>& rXPropSet, Referenc
mpFS->endElementNS( XML_a, XML_ln );
}
-const char* DrawingML::GetComponentDir()
+const char* DrawingML::GetComponentDir() const
{
switch ( meDocumentType )
{
@@ -1039,7 +1039,7 @@ const char* DrawingML::GetComponentDir()
return "unknown";
}
-const char* DrawingML::GetRelationCompPrefix()
+const char* DrawingML::GetRelationCompPrefix() const
{
switch ( meDocumentType )
{
diff --git a/oox/source/helper/grabbagstack.cxx b/oox/source/helper/grabbagstack.cxx
index ca20a6ecaa3b..7d4f23a27798 100644
--- a/oox/source/helper/grabbagstack.cxx
+++ b/oox/source/helper/grabbagstack.cxx
@@ -26,7 +26,7 @@ GrabBagStack::GrabBagStack(const OUString& aElementName)
GrabBagStack::~GrabBagStack()
{}
-bool GrabBagStack::isStackEmpty()
+bool GrabBagStack::isStackEmpty() const
{
return mStack.empty();
}
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx
index 052285cbdfbb..b4f2db17ccf5 100644
--- a/oox/source/ole/vbaexport.cxx
+++ b/oox/source/ole/vbaexport.cxx
@@ -1118,7 +1118,7 @@ void VbaExport::exportVBA(SotStorage* pRootStorage)
pRootStorage->Commit();
}
-css::uno::Reference<css::script::XLibraryContainer> VbaExport::getLibraryContainer()
+css::uno::Reference<css::script::XLibraryContainer> VbaExport::getLibraryContainer() const
{
oox::PropertySet aDocProp(mxModel);
css::uno::Reference<css::script::XLibraryContainer> xLibContainer(aDocProp.getAnyProperty(oox::PROP_BasicLibraries), css::uno::UNO_QUERY);
@@ -1126,7 +1126,7 @@ css::uno::Reference<css::script::XLibraryContainer> VbaExport::getLibraryContain
return xLibContainer;
}
-css::uno::Reference<css::container::XNameContainer> VbaExport::getBasicLibrary()
+css::uno::Reference<css::container::XNameContainer> VbaExport::getBasicLibrary() const
{
css::uno::Reference<css::container::XNameContainer> xLibrary;
try
@@ -1157,7 +1157,7 @@ bool VbaExport::containsVBAProject()
return bVBACompatibilty;
}
-OUString VbaExport::getProjectName()
+OUString VbaExport::getProjectName() const
{
css::uno::Reference<css::script::vba::XVBACompatibility> xVbaCompatibility(getLibraryContainer(), css::uno::UNO_QUERY);
if (xVbaCompatibility.is())
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index 52f9d5236612..0088c1e51673 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -112,7 +112,7 @@ oox::drawingml::TextListStylePtr PPTShape::getSubTypeTextListStyle( const SlideP
void PPTShape::addShape(
oox::core::XmlFilterBase& rFilterBase,
- SlidePersist& rSlidePersist,
+ const SlidePersist& rSlidePersist,
const oox::drawingml::Theme* pTheme,
const Reference< XShapes >& rxShapes,
basegfx::B2DHomMatrix& aTransformation,
diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx
index 5c5d61f5640b..247831677dfd 100644
--- a/oox/source/ppt/slidepersist.cxx
+++ b/oox/source/ppt/slidepersist.cxx
@@ -78,7 +78,7 @@ SlidePersist::~SlidePersist()
{
}
-sal_Int16 SlidePersist::getLayoutFromValueToken()
+sal_Int16 SlidePersist::getLayoutFromValueToken() const
{
sal_Int16 nLayout = 20; // 20 == blanc (so many magic numbers :-( the description at com.sun.star.presentation.DrawPage.Layout does not help)
switch( mnLayoutValueToken )
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index 151adbcdf725..b965dfea1b6f 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -105,7 +105,7 @@ namespace oox { namespace ppt {
{
}
- Any get()
+ Any get() const
{
sal_Int32 nColor;
Sequence< double > aHSL( 3 );