summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 10:03:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 14:53:01 +0200
commitc76e30707e08705a90bbfc089975b0cafd84dc8a (patch)
tree000536a662a08b0eebc2f65c632ba60e5f5d6086 /svtools
parent0e8e1c1881f3f00c76aa47aa1652f4cec343c256 (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 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
-rw-r--r--svtools/source/config/colorcfg.cxx2
-rw-r--r--svtools/source/config/miscopt.cxx8
-rw-r--r--svtools/source/control/breadcrumb.cxx2
-rw-r--r--svtools/source/control/ruler.cxx2
-rw-r--r--svtools/source/control/tabbar.cxx4
-rw-r--r--svtools/source/control/toolbarmenu.cxx2
-rw-r--r--svtools/source/filter/exportdialog.cxx2
-rw-r--r--svtools/source/filter/exportdialog.hxx2
-rw-r--r--svtools/source/inc/unoiface.hxx10
-rw-r--r--svtools/source/uno/unoiface.cxx10
11 files changed, 23 insertions, 23 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index efb44073f2f0..83ba7c83d3e0 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -2333,7 +2333,7 @@ void BrowseBox::GetFocus()
}
-sal_uInt16 BrowseBox::GetVisibleRows()
+sal_uInt16 BrowseBox::GetVisibleRows() const
{
return static_cast<sal_uInt16>((pDataWin->GetOutputSizePixel().Height() - 1 )/ GetDataRowHeight() + 1);
}
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 10f4c0e6f63f..5f1cb50ba254 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -93,7 +93,7 @@ public:
using ConfigItem::SetModified;
using ConfigItem::ClearModified;
void SettingsChanged();
- bool GetAutoDetectSystemHC() {return m_bAutoDetectSystemHC;}
+ bool GetAutoDetectSystemHC() const {return m_bAutoDetectSystemHC;}
DECL_LINK( DataChangedEventListener, VclSimpleEvent&, void );
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 4328e3b8bc65..f3e4dab7b844 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -154,13 +154,13 @@ public:
bool IsPluginsEnabled() const
{ return m_bPluginsEnabled; }
- sal_Int16 GetSymbolsSize()
+ sal_Int16 GetSymbolsSize() const
{ return m_nSymbolsSize; }
- ToolBoxButtonSize GetSidebarIconSize()
+ ToolBoxButtonSize GetSidebarIconSize() const
{ return m_nSidebarIconSize; }
- ToolBoxButtonSize GetNotebookbarIconSize()
+ ToolBoxButtonSize GetNotebookbarIconSize() const
{ return m_nNotebookbarIconSize; }
void SetSymbolsSize( sal_Int16 nSet );
@@ -192,7 +192,7 @@ public:
{return m_bIconThemeWasSetAutomatically;}
// translate to VCL settings ( "0" = 3D, "1" = FLAT )
- sal_Int16 GetToolboxStyle()
+ sal_Int16 GetToolboxStyle() const
{ return m_nToolboxStyle ? VCL_TOOLBOX_STYLE_FLAT : 0; }
// translate from VCL settings
diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx
index fd2f777e84d6..8513f882a1e3 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -82,7 +82,7 @@ void Breadcrumb::SetClickHdl( const Link<Breadcrumb*,void>& rLink )
m_aClickHdl = rLink;
}
-const OUString& Breadcrumb::GetHdlURL()
+const OUString& Breadcrumb::GetHdlURL() const
{
return m_sClickedURL;
}
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 3e83d5da1d0d..e58159c2a6c8 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2726,7 +2726,7 @@ long Ruler::GetMargin2() const
}
-bool Ruler::GetTextRTL()
+bool Ruler::GetTextRTL() const
{
return mpData->bTextRTL;
}
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 43e1c6d7f30e..b3d814038b98 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -250,7 +250,7 @@ public:
return static_cast<TabBar*>(Window::GetParent());
}
- bool isModKeyPressed()
+ bool isModKeyPressed() const
{
return mbModKey;
}
@@ -483,7 +483,7 @@ struct TabBar_Impl
vcl::AccessibleFactoryAccess maAccessibleFactory;
- sal_uInt16 getItemSize()
+ sal_uInt16 getItemSize() const
{
return static_cast<sal_uInt16>(mpItemList.size());
}
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index e64162c6f0d0..1b5f202becd6 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -1493,7 +1493,7 @@ void ToolbarPopupBase::statusChanged( const css::frame::FeatureStateEvent& /*Eve
{
}
-bool ToolbarPopup::IsInPopupMode()
+bool ToolbarPopup::IsInPopupMode() const
{
return GetDockingManager()->IsInPopupMode(this);
}
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index 0cbedcbf2f18..e303a61cc0b0 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -102,7 +102,7 @@ static MapUnit GetMapUnit( sal_Int32 nUnit )
return aMapUnit;
}
-sal_Int32 ExportDialog::GetDefaultUnit()
+sal_Int32 ExportDialog::GetDefaultUnit() const
{
sal_Int32 nDefaultUnit = UNIT_CM;
switch( mrFltCallPara.eFieldUnit )
diff --git a/svtools/source/filter/exportdialog.hxx b/svtools/source/filter/exportdialog.hxx
index ac10ffb9a91a..8ba9cb740d2a 100644
--- a/svtools/source/filter/exportdialog.hxx
+++ b/svtools/source/filter/exportdialog.hxx
@@ -165,7 +165,7 @@ private:
css::awt::Size GetOriginalSize();
- sal_Int32 GetDefaultUnit();
+ sal_Int32 GetDefaultUnit() const;
public:
ExportDialog( FltCallDialogParameter& rPara,
diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx
index 9088a11ebeb2..1cccc09369cc 100644
--- a/svtools/source/inc/unoiface.hxx
+++ b/svtools/source/inc/unoiface.hxx
@@ -188,19 +188,19 @@ protected:
void setFormatKey(sal_Int32 nKey);
void SetValue(const css::uno::Any& rValue);
- css::uno::Any GetValue();
+ css::uno::Any GetValue() const;
void SetTreatAsNumber(bool bSet);
- bool GetTreatAsNumber();
+ bool GetTreatAsNumber() const;
void SetDefaultValue(const css::uno::Any& rValue);
- css::uno::Any GetDefaultValue();
+ css::uno::Any GetDefaultValue() const;
void SetMinValue(const css::uno::Any& rValue);
- css::uno::Any GetMinValue();
+ css::uno::Any GetMinValue() const;
void SetMaxValue(const css::uno::Any& rValue);
- css::uno::Any GetMaxValue();
+ css::uno::Any GetMaxValue() const;
void NotifyTextListeners();
css::uno::Any convertEffectiveValue(const css::uno::Any& rValue);
diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx
index 43cb1d85711e..39b95fbee5b0 100644
--- a/svtools/source/uno/unoiface.cxx
+++ b/svtools/source/uno/unoiface.cxx
@@ -1123,7 +1123,7 @@ void SVTXFormattedField::SetMinValue(const css::uno::Any& rValue)
}
-css::uno::Any SVTXFormattedField::GetMinValue()
+css::uno::Any SVTXFormattedField::GetMinValue() const
{
VclPtr<FormattedField> pField = GetAs< FormattedField >();
if (!pField || !pField->HasMinValue())
@@ -1163,7 +1163,7 @@ void SVTXFormattedField::SetMaxValue(const css::uno::Any& rValue)
}
-css::uno::Any SVTXFormattedField::GetMaxValue()
+css::uno::Any SVTXFormattedField::GetMaxValue() const
{
VclPtr<FormattedField> pField = GetAs< FormattedField >();
if (!pField || !pField->HasMaxValue())
@@ -1208,7 +1208,7 @@ void SVTXFormattedField::SetDefaultValue(const css::uno::Any& rValue)
}
-css::uno::Any SVTXFormattedField::GetDefaultValue()
+css::uno::Any SVTXFormattedField::GetDefaultValue() const
{
VclPtr<FormattedField> pField = GetAs< FormattedField >();
if (!pField || pField->IsEmptyFieldEnabled())
@@ -1223,7 +1223,7 @@ css::uno::Any SVTXFormattedField::GetDefaultValue()
}
-bool SVTXFormattedField::GetTreatAsNumber()
+bool SVTXFormattedField::GetTreatAsNumber() const
{
VclPtr<FormattedField> pField = GetAs< FormattedField >();
if (pField)
@@ -1241,7 +1241,7 @@ void SVTXFormattedField::SetTreatAsNumber(bool bSet)
}
-css::uno::Any SVTXFormattedField::GetValue()
+css::uno::Any SVTXFormattedField::GetValue() const
{
VclPtr<FormattedField> pField = GetAs< FormattedField >();
if (!pField)