diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 20:33:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 22:12:02 +0200 |
commit | 592c31a8fa8729259cf42440a0a26c0322bbbba5 (patch) | |
tree | 5448499c937ca9a5fba1ecb8c6a278180359853d /sw/inc | |
parent | ef2e9c91d0a0483c19d0175c1b0ccb24d3f6bfbc (diff) |
loplugin:returnconstval in sw
Change-Id: I15d8553bff7528f690ff92bee75d6a67037c0adf
Reviewed-on: https://gerrit.libreoffice.org/78062
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/AnnotationWin.hxx | 4 | ||||
-rw-r--r-- | sw/inc/SwStyleNameMapper.hxx | 4 | ||||
-rw-r--r-- | sw/inc/anchoreddrawobject.hxx | 4 | ||||
-rw-r--r-- | sw/inc/anchoredobject.hxx | 4 | ||||
-rw-r--r-- | sw/inc/docufld.hxx | 4 | ||||
-rw-r--r-- | sw/inc/fesh.hxx | 4 | ||||
-rw-r--r-- | sw/inc/iodetect.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swabstdlg.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swrect.hxx | 16 | ||||
-rw-r--r-- | sw/inc/txtfld.hxx | 2 | ||||
-rw-r--r-- | sw/inc/viewsh.hxx | 2 |
11 files changed, 24 insertions, 24 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 2af2d9e56b37..18ebe2e7f8c1 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -124,8 +124,8 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void SetScrollbar(); void SetVirtualPosSize( const Point& aPoint, const Size& aSize); - const Point VirtualPos() { return mPosSize.TopLeft(); } - const Size VirtualSize() { return mPosSize.GetSize(); } + Point VirtualPos() { return mPosSize.TopLeft(); } + Size VirtualSize() { return mPosSize.GetSize(); } void ShowAnchorOnly(const Point &aPoint); void ShowNote(); diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx index e9e2533dd6e6..79d4f1011238 100644 --- a/sw/inc/SwStyleNameMapper.hxx +++ b/sw/inc/SwStyleNameMapper.hxx @@ -166,9 +166,9 @@ public: // RES_POOLCOLL_LABEL_TABLE, RES_POOLCOLL_LABEL_FRAME // forth and back. // Non-matching names remain unchanged. - SW_DLLPUBLIC static const OUString GetSpecialExtraProgName( + SW_DLLPUBLIC static const OUString & GetSpecialExtraProgName( const OUString& rExtraUIName); - static const OUString GetSpecialExtraUIName(const OUString& rExtraProgName); + static const OUString & GetSpecialExtraUIName(const OUString& rExtraProgName); static const std::vector<OUString>& GetTextUINameArray(); static const std::vector<OUString>& GetListsUINameArray(); diff --git a/sw/inc/anchoreddrawobject.hxx b/sw/inc/anchoreddrawobject.hxx index 5ca119f90aac..2f7a1b6a44d8 100644 --- a/sw/inc/anchoreddrawobject.hxx +++ b/sw/inc/anchoreddrawobject.hxx @@ -99,7 +99,7 @@ class SW_DLLPUBLIC SwAnchoredDrawObject : public SwAnchoredObject virtual bool SetObjTop_( const SwTwips _nTop) override; virtual bool SetObjLeft_( const SwTwips _nLeft) override; - virtual const SwRect GetObjBoundRect() const override; + virtual SwRect GetObjBoundRect() const override; public: @@ -119,7 +119,7 @@ class SW_DLLPUBLIC SwAnchoredDrawObject : public SwAnchoredObject virtual const SwFrameFormat& GetFrameFormat() const override; // accessors to the object area and its position - virtual const SwRect GetObjRect() const override; + virtual SwRect GetObjRect() const override; boost::optional<tools::Rectangle> const & GetLastObjRect() const { return maLastObjRect;} void SetLastObjRect( const tools::Rectangle& _rNewObjRect ); diff --git a/sw/inc/anchoredobject.hxx b/sw/inc/anchoredobject.hxx index 386cdc0f42a4..0c5c2495092a 100644 --- a/sw/inc/anchoredobject.hxx +++ b/sw/inc/anchoredobject.hxx @@ -189,7 +189,7 @@ class SW_DLLPUBLIC SwAnchoredObject virtual bool SetObjTop_( const SwTwips _nTop) = 0; virtual bool SetObjLeft_( const SwTwips _nLeft) = 0; - virtual const SwRect GetObjBoundRect() const = 0; + virtual SwRect GetObjBoundRect() const = 0; public: virtual ~SwAnchoredObject(); @@ -316,7 +316,7 @@ class SW_DLLPUBLIC SwAnchoredObject virtual const SwFrameFormat& GetFrameFormat() const = 0; // accessors to the object area and its position - virtual const SwRect GetObjRect() const = 0; + virtual SwRect GetObjRect() const = 0; void SetObjTop( const SwTwips _nTop); void SetObjLeft( const SwTwips _nLeft); diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index abdfe644a798..e6afd73af156 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -471,8 +471,8 @@ public: virtual std::unique_ptr<SwField> Copy() const override; const DateTime& GetDateTime() const { return m_aDateTime; } - const Date GetDate() const { return Date(m_aDateTime.GetDate()); } - const tools::Time GetTime() const { return tools::Time(m_aDateTime.GetTime()); } + Date GetDate() const { return Date(m_aDateTime.GetDate()); } + tools::Time GetTime() const { return tools::Time(m_aDateTime.GetTime()); } sal_uInt32 GetPostItId() const { return m_nPostItId; } /// Author diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index 6f6a5e860802..65732d8f384f 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -458,7 +458,7 @@ public: OUString GetFlyName() const; /// get reference to OLE object (if there is one) for selected FlyFrame - const css::uno::Reference < css::embed::XEmbeddedObject > GetOleRef() const; + css::uno::Reference < css::embed::XEmbeddedObject > GetOleRef() const; /// Created unique name for frame. OUString GetUniqueGrfName() const; @@ -779,7 +779,7 @@ public: @returns an object of class Color */ - const Color GetShapeBackgrd() const; + Color GetShapeBackgrd() const; /** Is default horizontal text direction for selected drawing object right-to-left diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx index e5223cdb7000..113468412282 100644 --- a/sw/inc/iodetect.hxx +++ b/sw/inc/iodetect.hxx @@ -106,7 +106,7 @@ public: static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen, rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd ); - static const OUString GetSubStorageName( const SfxFilter& rFltr ); + static OUString GetSubStorageName( const SfxFilter& rFltr ); }; extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT(SvStream &rStream); diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index d696d9388472..37a689cce58b 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -146,7 +146,7 @@ protected: public: virtual DBManagerOptions GetMergeType() = 0; virtual const OUString& GetSaveFilter() const = 0; - virtual const css::uno::Sequence< css::uno::Any > GetSelection() const = 0; + virtual css::uno::Sequence< css::uno::Any > GetSelection() const = 0; virtual css::uno::Reference< css::sdbc::XResultSet> GetResultSet() const = 0; virtual bool IsSaveSingleDoc() const = 0; virtual bool IsGenerateFromDataBase() const = 0; diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx index a09b38e81a8c..24f87ed58fce 100644 --- a/sw/inc/swrect.hxx +++ b/sw/inc/swrect.hxx @@ -133,12 +133,12 @@ public: void SetUpperLeftCorner( const Point& rNew ); void SetUpperRightCorner( const Point& rNew ); void SetLowerLeftCorner( const Point& rNew ); - const Size Size_() const; - const Point TopLeft() const; - const Point TopRight() const; - const Point BottomLeft() const; - const Point BottomRight() const; - const Size SwappedSize() const; + Size Size_() const; + Point TopLeft() const; + Point TopRight() const; + Point BottomLeft() const; + Point BottomRight() const; + Size SwappedSize() const; long GetLeftDistance( long ) const; long GetBottomDistance( long ) const; long GetRightDistance( long ) const; @@ -151,8 +151,8 @@ public: typedef void (SwRect:: *SwRectSet)( const long nNew ); typedef long (SwRect:: *SwRectGet)() const; -typedef const Point (SwRect:: *SwRectPoint)() const; -typedef const Size (SwRect:: *SwRectSize)() const; +typedef Point (SwRect:: *SwRectPoint)() const; +typedef Size (SwRect:: *SwRectSize)() const; typedef bool (SwRect:: *SwRectMax)( long ) const; typedef long (SwRect:: *SwRectDist)( long ) const; typedef void (SwRect:: *SwRectSetTwice)( long, long ); diff --git a/sw/inc/txtfld.hxx b/sw/inc/txtfld.hxx index 0db27ba5818a..8dd16d7b84fc 100644 --- a/sw/inc/txtfld.hxx +++ b/sw/inc/txtfld.hxx @@ -93,7 +93,7 @@ public: void UpdateTextNodeContent( const OUString& rNewContent ); - const OUString GetFieldContent() const; + OUString GetFieldContent() const; void UpdateFieldContent(); private: diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 0608c17c0a03..3f11b6d6fe24 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -279,7 +279,7 @@ public: sal_uInt16 GetPageCount() const; - const Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const; + Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const; SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0. |