summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/emojicontrol.hxx2
-rw-r--r--sfx2/source/appl/newhelp.cxx2
-rw-r--r--sfx2/source/appl/newhelp.hxx2
-rw-r--r--sfx2/source/control/emojicontrol.cxx2
-rw-r--r--sfx2/source/control/objface.cxx2
-rw-r--r--sfx2/source/dialog/templdlg.cxx4
-rw-r--r--sfx2/source/doc/objmisc.cxx10
7 files changed, 12 insertions, 12 deletions
diff --git a/sfx2/inc/emojicontrol.hxx b/sfx2/inc/emojicontrol.hxx
index 98a28985fe42..eee551600da4 100644
--- a/sfx2/inc/emojicontrol.hxx
+++ b/sfx2/inc/emojicontrol.hxx
@@ -25,7 +25,7 @@ class SfxEmojiControl final : public WeldToolbarPopup
{
public:
- explicit SfxEmojiControl(EmojiPopup* pControl, weld::Widget* pParent);
+ explicit SfxEmojiControl(const EmojiPopup* pControl, weld::Widget* pParent);
virtual ~SfxEmojiControl() override;
virtual void GrabFocus() override;
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 72637cbcdcaf..10e53fa6c435 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -234,7 +234,7 @@ void ContentTabPage_Impl::InitRoot()
}
}
-void ContentTabPage_Impl::ClearChildren(weld::TreeIter* pParent)
+void ContentTabPage_Impl::ClearChildren(const weld::TreeIter* pParent)
{
std::unique_ptr<weld::TreeIter> xEntry = m_xContentBox->make_iterator(pParent);
bool bEntry = m_xContentBox->iter_children(*xEntry);
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 73df300dd6e3..25be4e6e3e12 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -72,7 +72,7 @@ private:
DECL_LINK(ExpandingHdl, const weld::TreeIter&, bool);
DECL_LINK(CollapsingHdl, const weld::TreeIter&, bool);
- void ClearChildren(weld::TreeIter* pParent);
+ void ClearChildren(const weld::TreeIter* pParent);
void InitRoot();
public:
ContentTabPage_Impl(weld::Widget* pParent, SfxHelpIndexWindow_Impl* _pIdxWin);
diff --git a/sfx2/source/control/emojicontrol.cxx b/sfx2/source/control/emojicontrol.cxx
index a7d3718f3ee3..8eeea0d5cc19 100644
--- a/sfx2/source/control/emojicontrol.cxx
+++ b/sfx2/source/control/emojicontrol.cxx
@@ -38,7 +38,7 @@ const char FILTER_UNICODE9[] = "unicode9";
using namespace com::sun::star;
-SfxEmojiControl::SfxEmojiControl(EmojiPopup* pControl, weld::Widget* pParent)
+SfxEmojiControl::SfxEmojiControl(const EmojiPopup* pControl, weld::Widget* pParent)
: WeldToolbarPopup(pControl->getFrameInterface(), pParent, "sfx/ui/emojicontrol.ui", "emojictrl")
, mxPeopleBtn(m_xBuilder->weld_toggle_button(FILTER_PEOPLE))
, mxNatureBtn(m_xBuilder->weld_toggle_button(FILTER_NATURE))
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index 37fcf8e7b238..a9bb8f37ba09 100644
--- a/sfx2/source/control/objface.cxx
+++ b/sfx2/source/control/objface.cxx
@@ -100,7 +100,7 @@ SfxInterface::SfxInterface( const char *pClassName,
SetSlotMap( rSlotMap, nSlotCount );
}
-void SfxInterface::Register( SfxModule* pMod )
+void SfxInterface::Register( const SfxModule* pMod )
{
if ( pMod )
pMod->GetSlotPool()->RegisterInterface(*this);
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 62d02b67aae7..e9bfc17fa876 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -384,7 +384,7 @@ void SfxTemplatePanelControl::dispose()
PanelLayout::dispose();
}
-static void MakeExpanded_Impl(weld::TreeView& rBox, std::vector<OUString>& rEntries)
+static void MakeExpanded_Impl(const weld::TreeView& rBox, std::vector<OUString>& rEntries)
{
std::unique_ptr<weld::TreeIter> xEntry = rBox.make_iterator();
if (rBox.get_iter_first(*xEntry))
@@ -487,7 +487,7 @@ static void FillBox_Impl(weld::TreeView& rBox,
StyleTree_Impl* pEntry,
const std::vector<OUString>& rEntries,
SfxStyleFamily eStyleFamily,
- weld::TreeIter* pParent)
+ const weld::TreeIter* pParent)
{
std::unique_ptr<weld::TreeIter> xResult = rBox.make_iterator();
const OUString& rName = pEntry->getName();
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 1a5cde068054..6ca2de78fd8f 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -1863,7 +1863,7 @@ bool SfxObjectShell::IsContinueImportOnFilterExceptions(const OUString& aErrMess
return mbContinueImportOnFilterExceptions == yes;
}
-bool SfxObjectShell::isEditDocLocked()
+bool SfxObjectShell::isEditDocLocked() const
{
Reference<XModel> xModel = GetModel();
if (!xModel.is())
@@ -1874,7 +1874,7 @@ bool SfxObjectShell::isEditDocLocked()
return aArgs.getOrDefault("LockEditDoc", false);
}
-bool SfxObjectShell::isContentExtractionLocked()
+bool SfxObjectShell::isContentExtractionLocked() const
{
Reference<XModel> xModel = GetModel();
if (!xModel.is())
@@ -1883,7 +1883,7 @@ bool SfxObjectShell::isContentExtractionLocked()
return aArgs.getOrDefault("LockContentExtraction", false);
}
-bool SfxObjectShell::isExportLocked()
+bool SfxObjectShell::isExportLocked() const
{
Reference<XModel> xModel = GetModel();
if (!xModel.is())
@@ -1892,7 +1892,7 @@ bool SfxObjectShell::isExportLocked()
return aArgs.getOrDefault("LockExport", false);
}
-bool SfxObjectShell::isPrintLocked()
+bool SfxObjectShell::isPrintLocked() const
{
Reference<XModel> xModel = GetModel();
if (!xModel.is())
@@ -1901,7 +1901,7 @@ bool SfxObjectShell::isPrintLocked()
return aArgs.getOrDefault("LockPrint", false);
}
-bool SfxObjectShell::isSaveLocked()
+bool SfxObjectShell::isSaveLocked() const
{
Reference<XModel> xModel = GetModel();
if (!xModel.is())