diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-02 14:28:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-02 15:35:31 +0200 |
commit | ed5e44054c4c5c0fd7d9555dba777df250b7f301 (patch) | |
tree | 412937bcb45329b37ead6f812455a7d0cb3a286a /include/oox/ppt | |
parent | 221107a1853c93e69debb42b2106978379d5ae60 (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 'include/oox/ppt')
-rw-r--r-- | include/oox/ppt/comments.hxx | 10 | ||||
-rw-r--r-- | include/oox/ppt/pptshape.hxx | 2 | ||||
-rw-r--r-- | include/oox/ppt/slidefragmenthandler.hxx | 2 | ||||
-rw-r--r-- | include/oox/ppt/slidepersist.hxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/include/oox/ppt/comments.hxx b/include/oox/ppt/comments.hxx index 65f719fff9f4..781820b7a0b5 100644 --- a/include/oox/ppt/comments.hxx +++ b/include/oox/ppt/comments.hxx @@ -80,19 +80,19 @@ class Comment { text = _text; } - const OUString& get_text() + const OUString& get_text() const { return text; } - const css::util::DateTime& getDateTime() + const css::util::DateTime& getDateTime() const { return aDateTime; } - sal_Int32 getIntX() + sal_Int32 getIntX() const { return x.toInt32(); } - sal_Int32 getIntY() + sal_Int32 getIntY() const { return y.toInt32(); } @@ -103,7 +103,7 @@ class CommentList { public: std::vector<Comment> cmLst; - int getSize () + int getSize () const { return static_cast<int>(cmLst.size()); } diff --git a/include/oox/ppt/pptshape.hxx b/include/oox/ppt/pptshape.hxx index b1ffc3f91ffa..fac28f7616c3 100644 --- a/include/oox/ppt/pptshape.hxx +++ b/include/oox/ppt/pptshape.hxx @@ -62,7 +62,7 @@ public: // addShape is creating and inserting the corresponding XShape. void addShape( oox::core::XmlFilterBase& rFilterBase, - SlidePersist& rPersist, + const SlidePersist& rPersist, const oox::drawingml::Theme* pTheme, const css::uno::Reference< css::drawing::XShapes >& rxShapes, basegfx::B2DHomMatrix& aTransformation, diff --git a/include/oox/ppt/slidefragmenthandler.hxx b/include/oox/ppt/slidefragmenthandler.hxx index 8e5791564e77..c6a193ffdbff 100644 --- a/include/oox/ppt/slidefragmenthandler.hxx +++ b/include/oox/ppt/slidefragmenthandler.hxx @@ -44,7 +44,7 @@ public: virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; virtual void onCharacters( const OUString& rChars ) override; - const ::std::vector< OUString>& getCharVector() { return maCharVector; } + const ::std::vector< OUString>& getCharVector() const { return maCharVector; } protected: SlidePersistPtr mpSlidePersistPtr; diff --git a/include/oox/ppt/slidepersist.hxx b/include/oox/ppt/slidepersist.hxx index 5708775c25bd..8ef8515757bf 100644 --- a/include/oox/ppt/slidepersist.hxx +++ b/include/oox/ppt/slidepersist.hxx @@ -96,7 +96,7 @@ public: bool isNotesPage() const { return mbNotes; } void setLayoutValueToken( sal_Int32 nLayoutValueToken ) { mnLayoutValueToken = nLayoutValueToken; } - sal_Int16 getLayoutFromValueToken(); + sal_Int16 getLayoutFromValueToken() const; const oox::drawingml::TextListStylePtr& getDefaultTextStyle() const { return maDefaultTextStylePtr; } @@ -105,7 +105,7 @@ public: const oox::drawingml::TextListStylePtr& getNotesTextStyle() const { return maNotesTextStylePtr; } const oox::drawingml::TextListStylePtr& getOtherTextStyle() const { return maOtherTextStylePtr; } - const oox::drawingml::ShapePtr& getShapes() { return maShapesPtr; } + const oox::drawingml::ShapePtr& getShapes() const { return maShapesPtr; } void hideShapesAsMasterShapes(); ::std::vector< std::shared_ptr< TimeNode > >& getTimeNodeList() { return maTimeNodeList; } oox::ppt::HeaderFooter& getHeaderFooter(){ return maHeaderFooter; }; |