diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 10:03:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 14:53:01 +0200 |
commit | c76e30707e08705a90bbfc089975b0cafd84dc8a (patch) | |
tree | 000536a662a08b0eebc2f65c632ba60e5f5d6086 /include/svtools | |
parent | 0e8e1c1881f3f00c76aa47aa1652f4cec343c256 (diff) |
loplugin:constmethod in svtools
Change-Id: I24e2a5844f24b9a3c973e064dad832573339dc7b
Reviewed-on: https://gerrit.libreoffice.org/77946
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/PlaceEditDialog.hxx | 8 | ||||
-rw-r--r-- | include/svtools/breadcrumb.hxx | 2 | ||||
-rw-r--r-- | include/svtools/brwbox.hxx | 4 | ||||
-rw-r--r-- | include/svtools/ctrlbox.hxx | 4 | ||||
-rw-r--r-- | include/svtools/inettbc.hxx | 2 | ||||
-rw-r--r-- | include/svtools/place.hxx | 6 | ||||
-rw-r--r-- | include/svtools/ruler.hxx | 2 | ||||
-rw-r--r-- | include/svtools/scrwin.hxx | 2 | ||||
-rw-r--r-- | include/svtools/simptabl.hxx | 2 | ||||
-rw-r--r-- | include/svtools/toolbarmenu.hxx | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/include/svtools/PlaceEditDialog.hxx b/include/svtools/PlaceEditDialog.hxx index 6047e8680e46..fd53f1021181 100644 --- a/include/svtools/PlaceEditDialog.hxx +++ b/include/svtools/PlaceEditDialog.hxx @@ -76,11 +76,11 @@ public: // Returns a place instance with given information std::shared_ptr<Place> GetPlace(); - OUString GetServerName() { return m_xEDServerName->get_text(); } + OUString GetServerName() const { return m_xEDServerName->get_text(); } OUString GetServerUrl(); - OUString GetPassword() { return m_xEDPassword->get_text(); }; - OUString GetUser() { return m_xEDUsername->get_text(); }; - bool IsRememberChecked() { return m_xCBPassword->get_active(); } + OUString GetPassword() const { return m_xEDPassword->get_text(); }; + OUString GetUser() const { return m_xEDUsername->get_text(); }; + bool IsRememberChecked() const { return m_xCBPassword->get_active(); } void ShowPasswordControl() { m_bShowPassword = true; } diff --git a/include/svtools/breadcrumb.hxx b/include/svtools/breadcrumb.hxx index 1889d923441c..7a8672775739 100644 --- a/include/svtools/breadcrumb.hxx +++ b/include/svtools/breadcrumb.hxx @@ -55,7 +55,7 @@ class SVT_DLLPUBLIC Breadcrumb : public VclHBox void EnableFields( bool bEnable ); void SetClickHdl( const Link<Breadcrumb*,void>& rLink ); - const OUString& GetHdlURL(); + const OUString& GetHdlURL() const; void SetRootName( const OUString& rURL ); void SetURL( const OUString& rURL ); diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 6022cb1c8142..f12edefd6c2e 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -349,8 +349,8 @@ protected: virtual void VisibleRowsChanged( long nNewTopRow, sal_uInt16 nNumRows); // number of visible rows in the window (incl. "truncated" rows) - sal_uInt16 GetVisibleRows(); - long GetTopRow() { return nTopRow; } + sal_uInt16 GetVisibleRows() const; + long GetTopRow() const { return nTopRow; } sal_uInt16 GetFirstVisibleColNumber() const { return nFirstCol; } // Focus-Rect enable / disable diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 56b7f55026e8..e4b7a71c2d04 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -91,8 +91,8 @@ public: } /** Returns the minimum width in twips */ - long GetMinWidth( ) { return m_nMinWidth;} - SvxBorderLineStyle GetStyle( ) { return m_nStyle;} + long GetMinWidth( ) const { return m_nMinWidth;} + SvxBorderLineStyle GetStyle( ) const { return m_nStyle;} }; enum class SvxBorderLineStyle : sal_Int16; diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index bf99e4d838c4..13b9bed5cc67 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -85,7 +85,7 @@ public: { bIsAutoCompleteEnabled = _bEnable; } void SetPlaceHolder( const OUString& sPlaceHolder ) { aPlaceHolder = sPlaceHolder; } - const OUString& GetPlaceHolder() { return aPlaceHolder; } + const OUString& GetPlaceHolder() const { return aPlaceHolder; } bool MatchesPlaceHolder( const OUString& sToMatch ) const { return ( !aPlaceHolder.isEmpty() ) && ( aPlaceHolder == sToMatch ); } }; diff --git a/include/svtools/place.hxx b/include/svtools/place.hxx index 7053c931b892..3d39c116d372 100644 --- a/include/svtools/place.hxx +++ b/include/svtools/place.hxx @@ -31,10 +31,10 @@ public: void SetUrl(const OUString& aUrl ) { maUrl.SetURL( aUrl ); } OUString& GetName( ) { return msName; } - OUString GetUrl( ) { return maUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } + OUString GetUrl( ) const { return maUrl.GetMainURL( INetURLObject::DecodeMechanism::NONE ); } INetURLObject& GetUrlObject( ) { return maUrl; } - bool IsLocal( ) { return maUrl.GetProtocol() == INetProtocol::File; } - bool IsEditable( ) { return mbEditable; } + bool IsLocal( ) const { return maUrl.GetProtocol() == INetProtocol::File; } + bool IsEditable( ) const { return mbEditable; } }; #endif // INCLUDED_SVTOOLS_PLACE_HXX diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx index 3aedb16531de..7902f307a1a4 100644 --- a/include/svtools/ruler.hxx +++ b/include/svtools/ruler.hxx @@ -788,7 +788,7 @@ public: void SetDoubleClickHdl( const Link<Ruler*,void>& rLink ) { maDoubleClickHdl = rLink; } void SetTextRTL(bool bRTL); - bool GetTextRTL(); + bool GetTextRTL() const; void SetCharWidth( long nWidth ) { mnCharWidth = nWidth ; } void SetLineHeight( long nHeight ) { mnLineHeight = nHeight ; } diff --git a/include/svtools/scrwin.hxx b/include/svtools/scrwin.hxx index 10e547669516..f63ba409c58d 100644 --- a/include/svtools/scrwin.hxx +++ b/include/svtools/scrwin.hxx @@ -56,7 +56,7 @@ public: MapMode GetMapMode() const; void SetTotalSize( const Size& rNewSize ); - Size GetTotalSize() { return PixelToLogic( aTotPixSz ); } + Size GetTotalSize() const { return PixelToLogic( aTotPixSz ); } using Window::Scroll; virtual void Scroll( long nDeltaX, long nDeltaY, ScrollFlags nFlags = ScrollFlags::NONE ) override; diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index 476e77c6764b..99e0e040c2f3 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -100,7 +100,7 @@ public: bool IsEnabled() const; void SortByCol(sal_uInt16, bool bDir=true); - sal_uInt16 GetSortedCol(){ return nSortCol;} + sal_uInt16 GetSortedCol() const { return nSortCol;} SvLBoxItem* GetEntryAtPos( SvTreeListEntry* pEntry, sal_uInt16 nPos ) const; bool IsFocusOnCellEnabled() const { return IsCellFocusEnabled(); } diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx index bd73d7cb2784..01c8652d3415 100644 --- a/include/svtools/toolbarmenu.hxx +++ b/include/svtools/toolbarmenu.hxx @@ -70,7 +70,7 @@ public: virtual void dispose() override; protected: - bool IsInPopupMode(); + bool IsInPopupMode() const; void EndPopupMode(); private: |