diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-15 12:28:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-15 17:33:55 +0100 |
commit | d197d524c5292cf6d66be802ec7d1fed78e30416 (patch) | |
tree | ed1c3f2476cc557a776b9f6aabc56be3bb5b8534 /sfx2/source/view/classificationcontroller.cxx | |
parent | 80751cd90d007a19143e13bf69c7e317b7d4afc9 (diff) |
loplugin:staticmethods in sfx2
Change-Id: Ide10d0186431e745c3bb17d321cf46724e801c8f
Reviewed-on: https://gerrit.libreoffice.org/63404
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view/classificationcontroller.cxx')
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index accb1d9d0c28..f07824a3774a 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -97,7 +97,7 @@ public: { return m_pCategory; } - sfx::ClassificationCreationOrigin getExistingClassificationOrigin(); + static sfx::ClassificationCreationOrigin getExistingClassificationOrigin(); void toggleInteractivityOnOrigin(); void setCategoryStateFromPolicy(SfxClassificationHelper & rHelper); }; @@ -175,7 +175,7 @@ IMPL_LINK(ClassificationCategoriesController, SelectHdl, ListBox&, rCategory, vo { m_pClassification->toggleInteractivityOnOrigin(); - if (m_pClassification->getExistingClassificationOrigin() == sfx::ClassificationCreationOrigin::MANUAL) + if (ClassificationControl::getExistingClassificationOrigin() == sfx::ClassificationCreationOrigin::MANUAL) { SfxObjectShell* pObjectShell = SfxObjectShell::Current(); if (!pObjectShell) @@ -211,7 +211,7 @@ void ClassificationCategoriesController::statusChanged(const frame::FeatureState m_pClassification->toggleInteractivityOnOrigin(); // check if classification was set via the advanced dialog - if (m_pClassification->getExistingClassificationOrigin() != sfx::ClassificationCreationOrigin::MANUAL) + if (ClassificationControl::getExistingClassificationOrigin() != sfx::ClassificationCreationOrigin::MANUAL) { VclPtr<ListBox> pCategories = m_pClassification->getCategory(); if (pCategories->GetEntryCount() == 0) |