summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-05 14:20:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-05 18:50:51 +0200
commite859bf8c4da78698b820d13af1a2fdee3602f5b4 (patch)
treeb2ead4e992f283c2e1dfcdabfa99f013f1506918
parentUpdate git submodules (diff)
downloadcore-e859bf8c4da78698b820d13af1a2fdee3602f5b4.tar.gz
core-e859bf8c4da78698b820d13af1a2fdee3602f5b4.zip
loplugin:constmethod
Change-Id: I7913fd8144d521b8293ac43036d0fad82e457cd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115145 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--accessibility/inc/standard/vclxaccessibletoolboxitem.hxx2
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx2
-rw-r--r--basic/source/sbx/sbxvar.cxx2
-rw-r--r--embeddedobj/source/msole/olecomponent.hxx2
-rw-r--r--framework/source/fwe/dispatch/interaction.cxx2
-rw-r--r--include/basic/sbxvar.hxx2
-rw-r--r--include/framework/interaction.hxx2
-rw-r--r--include/sfx2/brokenpackageint.hxx4
-rw-r--r--include/sfx2/listview.hxx8
-rw-r--r--include/sfx2/templatedlg.hxx4
-rw-r--r--include/sfx2/templatedlglocalview.hxx2
-rw-r--r--include/vcl/filter/pdfdocument.hxx2
-rw-r--r--include/vcl/gfxlink.hxx2
-rw-r--r--include/vcl/toolkit/treelistbox.hxx2
-rw-r--r--include/xmloff/xmlexp.hxx2
-rw-r--r--sc/inc/scmatrix.hxx2
-rw-r--r--sc/qa/unit/parallelism.cxx4
-rw-r--r--sc/source/core/tool/interpr1.cxx2
-rw-r--r--sd/inc/Annotation.hxx2
-rw-r--r--sfx2/inc/sidebar/DeckTitleBar.hxx2
-rw-r--r--sfx2/source/appl/appuno.cxx4
-rw-r--r--sfx2/source/control/templatedlglocalview.cxx2
-rw-r--r--sfx2/source/control/templatesearchview.cxx2
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx2
-rw-r--r--sfx2/source/doc/templatedlg.cxx2
-rw-r--r--sfx2/source/inc/templatesearchview.hxx4
-rw-r--r--sfx2/source/sidebar/DeckTitleBar.cxx2
-rw-r--r--svx/source/form/fmvwimp.cxx2
-rw-r--r--svx/source/inc/fmvwimp.hxx2
-rw-r--r--sw/inc/viewopt.hxx2
-rw-r--r--sw/source/uibase/config/viewopt.cxx2
-rw-r--r--unotools/source/misc/syslocale.cxx4
-rw-r--r--vcl/inc/impgraph.hxx2
-rw-r--r--vcl/inc/jsdialog/jsdialogbuilder.hxx2
-rw-r--r--vcl/jsdialog/jsdialogbuilder.cxx2
-rw-r--r--vcl/qa/cppunit/graphicfilter/filters-tiff-test.cxx2
-rw-r--r--vcl/source/gdi/impgraph.cxx2
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx2
38 files changed, 47 insertions, 47 deletions
diff --git a/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx b/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx
index cbfb8162f677..a8de1b43231c 100644
--- a/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx
+++ b/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx
@@ -51,7 +51,7 @@ private:
bool m_bIndeterminate;
css::uno::Reference< css::accessibility::XAccessible > m_xChild;
- OUString GetText();
+ OUString GetText() const;
public:
sal_Int32 getIndexInParent() const { return m_nIndexInParent; }
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 211547a7e206..d290430975ba 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -114,7 +114,7 @@ VCLXAccessibleToolBoxItem::~VCLXAccessibleToolBoxItem()
{
}
-OUString VCLXAccessibleToolBoxItem::GetText()
+OUString VCLXAccessibleToolBoxItem::GetText() const
{
OUString sRet;
// no text for separators and spaces
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 77da97900f6c..b3a0e6db1ce8 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -355,7 +355,7 @@ void SbxVariable::SetParent( SbxObject* p )
pParent = p;
}
-const OUString& SbxVariable::GetDeclareClassName()
+const OUString& SbxVariable::GetDeclareClassName() const
{
return m_aDeclareClassName;
}
diff --git a/embeddedobj/source/msole/olecomponent.hxx b/embeddedobj/source/msole/olecomponent.hxx
index 63547c321adc..08f1cbed696f 100644
--- a/embeddedobj/source/msole/olecomponent.hxx
+++ b/embeddedobj/source/msole/olecomponent.hxx
@@ -123,7 +123,7 @@ public:
css::uno::Sequence< sal_Int8 > GetCLSID();
- bool IsWorkaroundActive() { return m_bWorkaroundActive; }
+ bool IsWorkaroundActive() const { return m_bWorkaroundActive; }
bool IsDirty();
void StoreOwnTmpIfNecessary();
diff --git a/framework/source/fwe/dispatch/interaction.cxx b/framework/source/fwe/dispatch/interaction.cxx
index 86f1b8d60f8b..19793e8f98b9 100644
--- a/framework/source/fwe/dispatch/interaction.cxx
+++ b/framework/source/fwe/dispatch/interaction.cxx
@@ -179,7 +179,7 @@ OUString RequestFilterSelect::getFilter() const
return mxImpl->getFilter();
}
-uno::Reference < task::XInteractionRequest > RequestFilterSelect::GetRequest()
+uno::Reference < task::XInteractionRequest > RequestFilterSelect::GetRequest() const
{
return mxImpl;
}
diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx
index 342ba8c33583..6454e445629f 100644
--- a/include/basic/sbxvar.hxx
+++ b/include/basic/sbxvar.hxx
@@ -295,7 +295,7 @@ public:
SbxObject* GetParent() { return pParent;}
virtual void SetParent( SbxObject* );
- const OUString& GetDeclareClassName();
+ const OUString& GetDeclareClassName() const;
void SetDeclareClassName( const OUString& );
void SetComListener( const css::uno::Reference< css::uno::XInterface >& xComListener,
StarBASIC* pParentBasic );
diff --git a/include/framework/interaction.hxx b/include/framework/interaction.hxx
index d02c5cd99067..4700d19200c9 100644
--- a/include/framework/interaction.hxx
+++ b/include/framework/interaction.hxx
@@ -75,7 +75,7 @@ public:
bool isAbort() const;
OUString getFilter() const;
- css::uno::Reference<css::task::XInteractionRequest> GetRequest();
+ css::uno::Reference<css::task::XInteractionRequest> GetRequest() const;
};
/*-************************************************************************************************************
diff --git a/include/sfx2/brokenpackageint.hxx b/include/sfx2/brokenpackageint.hxx
index e7a1e3876257..37c98540a6bc 100644
--- a/include/sfx2/brokenpackageint.hxx
+++ b/include/sfx2/brokenpackageint.hxx
@@ -42,7 +42,7 @@ public:
RequestPackageReparation(const RequestPackageReparation&) = delete;
RequestPackageReparation& operator=(const RequestPackageReparation&) = delete;
bool isApproved() const;
- css::uno::Reference<css::task::XInteractionRequest> GetRequest();
+ css::uno::Reference<css::task::XInteractionRequest> GetRequest() const;
};
class NotifyBrokenPackage_Impl;
@@ -55,7 +55,7 @@ public:
~NotifyBrokenPackage();
NotifyBrokenPackage(const NotifyBrokenPackage&) = delete;
NotifyBrokenPackage& operator=(const NotifyBrokenPackage&) = delete;
- css::uno::Reference<css::task::XInteractionRequest> GetRequest();
+ css::uno::Reference<css::task::XInteractionRequest> GetRequest() const;
};
#endif // INCLUDED_SFX2_BROKENPACKAGEINT_HXX
diff --git a/include/sfx2/listview.hxx b/include/sfx2/listview.hxx
index 4f7e37a49671..5b253754dd45 100644
--- a/include/sfx2/listview.hxx
+++ b/include/sfx2/listview.hxx
@@ -66,17 +66,17 @@ protected:
void select_id(const OUString& sId) { mxTreeView->select_id(sId); }
- int get_selected_index() { return mxTreeView->get_selected_index(); }
+ int get_selected_index() const { return mxTreeView->get_selected_index(); }
- std::vector<int> get_selected_rows() { return mxTreeView->get_selected_rows(); }
+ std::vector<int> get_selected_rows() const { return mxTreeView->get_selected_rows(); }
- bool IsListViewVisible() { return mxTreeView->is_visible(); }
+ bool IsListViewVisible() const { return mxTreeView->is_visible(); }
OUString get_id(int pos) { return mxTreeView->get_id(pos); }
void set_cursor(int pos) { mxTreeView->set_cursor(pos); }
- int get_cursor_index() { return mxTreeView->get_cursor_index(); }
+ int get_cursor_index() const { return mxTreeView->get_cursor_index(); }
sal_uInt16 get_cursor_nId() { return get_nId(mxTreeView->get_cursor_index()); }
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index 35bb0620978b..05a693611603 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -46,7 +46,7 @@ public:
void setDocumentModel(const css::uno::Reference<css::frame::XModel>& rModel);
void setTemplateViewMode(TemplateViewMode eViewMode);
- TemplateViewMode getTemplateViewMode();
+ TemplateViewMode getTemplateViewMode() const;
protected:
void getApplicationSpecificSettings();
@@ -210,4 +210,4 @@ private:
#endif // INCLUDED_SFX2_INC_TEMPLATEDLG_HXX
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/sfx2/templatedlglocalview.hxx b/include/sfx2/templatedlglocalview.hxx
index bdae9eb44e35..409a1acaa578 100644
--- a/include/sfx2/templatedlglocalview.hxx
+++ b/include/sfx2/templatedlglocalview.hxx
@@ -36,7 +36,7 @@ public:
virtual void Hide() override;
- bool IsVisible();
+ bool IsVisible() const;
void connect_focus_rect(const Link<weld::Widget&, tools::Rectangle>& rLink)
{
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx
index 7f7cc8dfb641..26866544bf60 100644
--- a/include/vcl/filter/pdfdocument.hxx
+++ b/include/vcl/filter/pdfdocument.hxx
@@ -231,7 +231,7 @@ public:
void SetValue(const OString& rValue) { m_aValue = rValue; }
const OString& GetValue() const;
sal_uInt64 GetLocation() const;
- sal_uInt64 GetLength() { return m_aValue.getLength(); }
+ sal_uInt64 GetLength() const { return m_aValue.getLength(); }
void writeString(OStringBuffer& rBuffer) override
{
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index 1acb51d05c0a..790589e68225 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -86,7 +86,7 @@ public:
sal_uInt32 GetDataSize() const { return maDataContainer.getSize(); }
const sal_uInt8* GetData() const;
- const BinaryDataContainer& getDataContainer()
+ const BinaryDataContainer& getDataContainer() const
{
return maDataContainer;
}
diff --git a/include/vcl/toolkit/treelistbox.hxx b/include/vcl/toolkit/treelistbox.hxx
index c2c2a2c05c84..c2aa4c03913c 100644
--- a/include/vcl/toolkit/treelistbox.hxx
+++ b/include/vcl/toolkit/treelistbox.hxx
@@ -678,7 +678,7 @@ public:
// Make single click "activate" a row like a double-click normally does
void SetActivateOnSingleClick(bool bEnable) { mbActivateOnSingleClick = bEnable; }
- bool GetActivateOnSingleClick() { return mbActivateOnSingleClick; }
+ bool GetActivateOnSingleClick() const { return mbActivateOnSingleClick; }
// Make mouse over a row "select" a row like a single-click normally does
void SetHoverSelection(bool bEnable) { mbHoverSelection = bEnable; }
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index d1925585431d..adba9e653077 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -378,7 +378,7 @@ public:
// Get common attribute list as implementation or interface.
SvXMLAttributeList &GetAttrList() { return *mxAttrList; }
- css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() { return mxAttrList; }
+ css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() const { return mxAttrList; }
// Get document handler. This methods are not const, because the
// reference allows modifications through the handler.
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index 2a1d9342499f..463b15e17b42 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -161,7 +161,7 @@ public:
KahanIterateResult(double fAccumulator, size_t nCount)
: maAccumulator(fAccumulator), mnCount(nCount) {}
- double get() { return maAccumulator.get(); }
+ double get() const { return maAccumulator.get(); }
};
diff --git a/sc/qa/unit/parallelism.cxx b/sc/qa/unit/parallelism.cxx
index e3902a2827bf..5f25cf3c582e 100644
--- a/sc/qa/unit/parallelism.cxx
+++ b/sc/qa/unit/parallelism.cxx
@@ -70,7 +70,7 @@ public:
private:
- bool getThreadingFlag();
+ bool getThreadingFlag() const;
void setThreadingFlag(bool bSet);
static ScUndoCut* cutToClip(ScDocShell& rDocSh, const ScRange& rRange, ScDocument* pClipDoc, bool bCreateUndo);
@@ -87,7 +87,7 @@ ScParallelismTest::ScParallelismTest()
{
}
-bool ScParallelismTest::getThreadingFlag()
+bool ScParallelismTest::getThreadingFlag() const
{
return officecfg::Office::Calc::Formula::Calculation::UseThreadedCalculationForFormulaGroups::get();
}
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index debe11a95581..94923f75c255 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -3937,7 +3937,7 @@ void ScInterpreter::GetStVarParams( bool bTextAsZero, double(*VarResult)( double
std::vector<double> mvValues;
KahanSum mfSum;
ArrayRefListValue() = default;
- double get() { return mfSum.get(); }
+ double get() const { return mfSum.get(); }
};
std::vector<ArrayRefListValue> vArrayValues;
diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx
index b32a7d1127f4..ca3ac088d0d0 100644
--- a/sd/inc/Annotation.hxx
+++ b/sd/inc/Annotation.hxx
@@ -128,7 +128,7 @@ public:
return *m_pCustomAnnotationMarker;
}
- bool hasCustomAnnotationMarker()
+ bool hasCustomAnnotationMarker() const
{
return bool(m_pCustomAnnotationMarker);
}
diff --git a/sfx2/inc/sidebar/DeckTitleBar.hxx b/sfx2/inc/sidebar/DeckTitleBar.hxx
index 1566b89675f9..7ed23a8bf914 100644
--- a/sfx2/inc/sidebar/DeckTitleBar.hxx
+++ b/sfx2/inc/sidebar/DeckTitleBar.hxx
@@ -37,7 +37,7 @@ public:
virtual OUString GetTitle() const override;
void SetCloserVisible(const bool bIsCloserVisible);
- tools::Rectangle GetDragArea();
+ tools::Rectangle GetDragArea() const;
virtual void DataChanged() override;
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index c02f164de836..f16c825d4886 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -1791,7 +1791,7 @@ bool RequestPackageReparation::isApproved() const
return mxImpl->isApproved();
}
-css::uno::Reference < task::XInteractionRequest > RequestPackageReparation::GetRequest()
+css::uno::Reference < task::XInteractionRequest > RequestPackageReparation::GetRequest() const
{
return mxImpl;
}
@@ -1836,7 +1836,7 @@ NotifyBrokenPackage::~NotifyBrokenPackage()
{
}
-css::uno::Reference < task::XInteractionRequest > NotifyBrokenPackage::GetRequest()
+css::uno::Reference < task::XInteractionRequest > NotifyBrokenPackage::GetRequest() const
{
return mxImpl;
}
diff --git a/sfx2/source/control/templatedlglocalview.cxx b/sfx2/source/control/templatedlglocalview.cxx
index d4a8f949ed4d..f916e57c8d7d 100644
--- a/sfx2/source/control/templatedlglocalview.cxx
+++ b/sfx2/source/control/templatedlglocalview.cxx
@@ -226,7 +226,7 @@ void TemplateDlgLocalView::Hide()
ListView::HideListView();
}
-bool TemplateDlgLocalView::IsVisible()
+bool TemplateDlgLocalView::IsVisible() const
{
return ThumbnailView::IsVisible() || ListView::IsListViewVisible();
}
diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx
index 941b54c4d80f..009dbb9f4c15 100644
--- a/sfx2/source/control/templatesearchview.cxx
+++ b/sfx2/source/control/templatesearchview.cxx
@@ -279,7 +279,7 @@ void TemplateSearchView::Hide()
ListView::HideListView();
}
-bool TemplateSearchView::IsVisible()
+bool TemplateSearchView::IsVisible() const
{
return ThumbnailView::IsVisible() || ListView::IsListViewVisible();
}
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 292b25548aef..62fb08229798 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -549,7 +549,7 @@ public:
{
}
- uno::Any getAny() { return maAny; }
+ const uno::Any& getAny() const { return maAny; }
bool shouldShowExpander() override
{
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 707fcd07b936..14e7db818f1e 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -328,7 +328,7 @@ void SfxTemplateManagerDlg::setTemplateViewMode(TemplateViewMode eViewMode)
}
}
-TemplateViewMode SfxTemplateManagerDlg::getTemplateViewMode()
+TemplateViewMode SfxTemplateManagerDlg::getTemplateViewMode() const
{
return mViewMode;
}
diff --git a/sfx2/source/inc/templatesearchview.hxx b/sfx2/source/inc/templatesearchview.hxx
index e564e03a4a08..c18e5af2797d 100644
--- a/sfx2/source/inc/templatesearchview.hxx
+++ b/sfx2/source/inc/templatesearchview.hxx
@@ -51,7 +51,7 @@ public:
void Clear() override;
- bool IsVisible();
+ bool IsVisible() const;
void syncCursor();
@@ -96,4 +96,4 @@ private:
#endif // INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEW_HXX
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index 9a7e34870045..6700014e82a4 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -78,7 +78,7 @@ DeckTitleBar::~DeckTitleBar()
{
}
-tools::Rectangle DeckTitleBar::GetDragArea()
+tools::Rectangle DeckTitleBar::GetDragArea() const
{
int x, y, width, height;
if (mxGripWidget->GetDrawingArea()->get_extents_relative_to(*mxTitlebar, x, y, width, height))
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index c9e2af6a4ce2..5bcb4ecb49d6 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -1010,7 +1010,7 @@ void FmXFormView::breakCreateFormObject()
m_xLastCreatedControlModel.clear();
}
-Reference<XWindow> FmXFormView::GetParentWindow()
+Reference<XWindow> FmXFormView::GetParentWindow() const
{
const vcl::Window* pCurrentWindow = m_pView ? dynamic_cast<const vcl::Window*>(m_pView->GetActualOutDev()) : nullptr;
return VCLUnoHelper::GetInterface(const_cast<vcl::Window*>(pCurrentWindow));
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index 62291ad8b195..dc56630c6ef3 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -172,7 +172,7 @@ class FmXFormView : public ::cppu::WeakImplHelper<
FmFormShell* GetFormShell() const;
- css::uno::Reference<css::awt::XWindow> GetParentWindow();
+ css::uno::Reference<css::awt::XWindow> GetParentWindow() const;
protected:
FmXFormView( FmFormView* _pView );
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index c1ae8daa452f..f073c185fc6d 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -684,7 +684,7 @@ public:
void SetDefaultAnchor( const sal_Int32 aFlag )
{ m_nDefaultAnchor = aFlag; }
- RndStdIds GetDefaultAnchorType();
+ RndStdIds GetDefaultAnchorType() const;
};
inline bool SwViewOption::operator==( const SwViewOption &rOpt ) const
diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx
index 304d5393ac0f..77e65e1f6604 100644
--- a/sw/source/uibase/config/viewopt.cxx
+++ b/sw/source/uibase/config/viewopt.cxx
@@ -374,7 +374,7 @@ sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
return nRet;
}
-RndStdIds SwViewOption::GetDefaultAnchorType()
+RndStdIds SwViewOption::GetDefaultAnchorType() const
{
switch ( m_nDefaultAnchor )
{
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx
index d68522720834..0201d9f8be72 100644
--- a/unotools/source/misc/syslocale.cxx
+++ b/unotools/source/misc/syslocale.cxx
@@ -57,7 +57,7 @@ public:
virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, ConfigurationHints ) override;
private:
- std::vector<OUString> getDateAcceptancePatternsConfig();
+ std::vector<OUString> getDateAcceptancePatternsConfig() const;
};
SvtSysLocale_Impl::SvtSysLocale_Impl()
@@ -98,7 +98,7 @@ void SvtSysLocale_Impl::ConfigurationChanged( utl::ConfigurationBroadcaster*, Co
pLocaleData.reset(new LocaleDataWrapper(rLanguageTag, getDateAcceptancePatternsConfig()));
}
-std::vector<OUString> SvtSysLocale_Impl::getDateAcceptancePatternsConfig()
+std::vector<OUString> SvtSysLocale_Impl::getDateAcceptancePatternsConfig() const
{
OUString aStr( aSysLocaleOptions.GetDatePatternsConfigString());
if (aStr.isEmpty())
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index a9b75697d399..acd7abf9bb2e 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -193,7 +193,7 @@ private:
bool isDummyContext() const { return mbDummyContext; }
void setGfxLink( const std::shared_ptr<GfxLink>& );
const std::shared_ptr<GfxLink> & getSharedGfxLink() const;
- GfxLink getGfxLink();
+ GfxLink getGfxLink() const;
bool isGfxLink() const;
BitmapChecksum getChecksum() const;
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 5807a20fb1b2..dfe932bb90ce 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -254,7 +254,7 @@ public:
static void RemoveWindowWidget(sal_uInt64 nWindowId);
private:
- const std::string& GetTypeOfJSON();
+ const std::string& GetTypeOfJSON() const;
VclPtr<vcl::Window>& GetContentWindow();
VclPtr<vcl::Window>& GetNotifierWindow();
};
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 6cfdea3e8b54..df273f0d57b7 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -557,7 +557,7 @@ void JSInstanceBuilder::RemoveWindowWidget(sal_uInt64 nWindowId)
}
}
-const std::string& JSInstanceBuilder::GetTypeOfJSON() { return m_sTypeOfJSON; }
+const std::string& JSInstanceBuilder::GetTypeOfJSON() const { return m_sTypeOfJSON; }
VclPtr<vcl::Window>& JSInstanceBuilder::GetContentWindow()
{
diff --git a/vcl/qa/cppunit/graphicfilter/filters-tiff-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-tiff-test.cxx
index 4a06b2ed424c..d3e7dec94d6f 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-tiff-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-tiff-test.cxx
@@ -33,7 +33,7 @@ public:
virtual bool load(const OUString&, const OUString& rURL, const OUString&, SfxFilterFlags,
SotClipboardFormatId, unsigned int) override;
- OUString getUrl()
+ OUString getUrl() const
{
return m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/tiff/");
}
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 91f2bca31189..6035771877dd 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1697,7 +1697,7 @@ const std::shared_ptr<GfxLink> & ImpGraphic::getSharedGfxLink() const
return mpGfxLink;
}
-GfxLink ImpGraphic::getGfxLink()
+GfxLink ImpGraphic::getGfxLink() const
{
ensureAvailable();
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index b7f7335eb7d9..fc5c8802b5d7 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -517,7 +517,7 @@ public:
void setFieldStatus(RTFFieldStatus eFieldStatus) { m_eFieldStatus = eFieldStatus; }
RTFFieldStatus getFieldStatus() const { return m_eFieldStatus; }
void setFieldLocked(bool bSet) { m_bFieldLocked = bSet; }
- bool isFieldLocked() { return m_bFieldLocked; }
+ bool isFieldLocked() const { return m_bFieldLocked; }
void setDestination(Destination eDestination) { m_eDestination = eDestination; }
Destination getDestination() const { return m_eDestination; }
void setInternalState(RTFInternalState nInternalState) { m_nInternalState = nInternalState; }