diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 13:51:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 15:57:17 +0200 |
commit | df905f41a33d0d7d2cde7fad80c5b3dc3c837c10 (patch) | |
tree | 374d73a95196ada089e34dafea9d69746a520a28 /sfx2/source/view | |
parent | ad4c7b97752b4da73808402604d6f96b39d920f5 (diff) |
loplugin:constmethod in sfx2
Change-Id: Ic129a8e136dc3f3b0a36fdb83e7aa71027ada59a
Reviewed-on: https://gerrit.libreoffice.org/78190
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/sfxbasecontroller.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index 05a6c6b93b8e..d1737912b3ca 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -95,13 +95,13 @@ public: ~ClassificationControl() override; void dispose() override; void Resize() override; - const VclPtr<ListBox>& getCategory() + const VclPtr<ListBox>& getCategory() const { return m_pCategory; } static sfx::ClassificationCreationOrigin getExistingClassificationOrigin(); void toggleInteractivityOnOrigin(); - void setCategoryStateFromPolicy(SfxClassificationHelper & rHelper); + void setCategoryStateFromPolicy(const SfxClassificationHelper & rHelper); }; namespace @@ -351,7 +351,7 @@ void ClassificationControl::toggleInteractivityOnOrigin() } } -void ClassificationControl::setCategoryStateFromPolicy(SfxClassificationHelper & rHelper) +void ClassificationControl::setCategoryStateFromPolicy(const SfxClassificationHelper & rHelper) { const OUString& rCategoryName = rHelper.GetBACName(SfxClassificationHelper::getPolicyType()); if (!rCategoryName.isEmpty()) diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx index 6102879c3d6d..23e737900614 100644 --- a/sfx2/source/view/classificationhelper.cxx +++ b/sfx2/source/view/classificationhelper.cxx @@ -596,22 +596,22 @@ SfxClassificationHelper::SfxClassificationHelper(const uno::Reference<document:: SfxClassificationHelper::~SfxClassificationHelper() = default; -std::vector<OUString> const & SfxClassificationHelper::GetMarkings() +std::vector<OUString> const & SfxClassificationHelper::GetMarkings() const { return m_pImpl->m_aMarkings; } -std::vector<OUString> const & SfxClassificationHelper::GetIntellectualPropertyParts() +std::vector<OUString> const & SfxClassificationHelper::GetIntellectualPropertyParts() const { return m_pImpl->m_aIPParts; } -std::vector<OUString> const & SfxClassificationHelper::GetIntellectualPropertyPartNumbers() +std::vector<OUString> const & SfxClassificationHelper::GetIntellectualPropertyPartNumbers() const { return m_pImpl->m_aIPPartNumbers; } -const OUString& SfxClassificationHelper::GetBACName(SfxClassificationPolicyType eType) +const OUString& SfxClassificationHelper::GetBACName(SfxClassificationPolicyType eType) const { return m_pImpl->m_aCategory[eType].m_aName; } diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 2e50126df545..5bc642d85be1 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -1096,7 +1096,7 @@ void SfxInPlaceClient::ResetObject() {} } -bool SfxInPlaceClient::IsUIActive() +bool SfxInPlaceClient::IsUIActive() const { return m_xImp->m_bUIActive; } diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 956ce26fc4b4..7812b560de2a 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1154,12 +1154,12 @@ bool SfxBaseController::HandleEvent_Impl( NotifyEvent const & rEvent ) return m_pData->m_aUserInputInterception.handleNotifyEvent( rEvent ); } -bool SfxBaseController::HasKeyListeners_Impl() +bool SfxBaseController::HasKeyListeners_Impl() const { return m_pData->m_aUserInputInterception.hasKeyHandlers(); } -bool SfxBaseController::HasMouseClickListeners_Impl() +bool SfxBaseController::HasMouseClickListeners_Impl() const { return m_pData->m_aUserInputInterception.hasMouseClickListeners(); } diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index abbb7b7b0ac5..748d8eefe05b 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1953,13 +1953,13 @@ bool SfxViewShell::HandleNotifyEvent_Impl( NotifyEvent const & rEvent ) return false; } -bool SfxViewShell::HasKeyListeners_Impl() +bool SfxViewShell::HasKeyListeners_Impl() const { return (pImpl->m_pController.is()) && pImpl->m_pController->HasKeyListeners_Impl(); } -bool SfxViewShell::HasMouseClickListeners_Impl() +bool SfxViewShell::HasMouseClickListeners_Impl() const { return (pImpl->m_pController.is()) && pImpl->m_pController->HasMouseClickListeners_Impl(); @@ -1988,7 +1988,7 @@ void SfxViewShell::notifyWindow(vcl::LOKWindowId nDialogId, const OUString& rAct SfxLokHelper::notifyWindow(this, nDialogId, rAction, rPayload); } -uno::Reference< datatransfer::clipboard::XClipboardNotifier > SfxViewShell::GetClipboardNotifier() +uno::Reference< datatransfer::clipboard::XClipboardNotifier > SfxViewShell::GetClipboardNotifier() const { uno::Reference< datatransfer::clipboard::XClipboardNotifier > xClipboardNotifier; if ( GetViewFrame() ) |