diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-07-01 21:26:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-07-01 23:44:43 +0200 |
commit | 72fcc08ea042f660dba802f20714a7fe8e86e1a8 (patch) | |
tree | 9910ce4d7645f9fd093a60d86b6c542a4b4e96dd /sd/source/ui/framework | |
parent | 9c6100c26a295bba568f89b2eb0ade104ddb2069 (diff) |
Upcoming improved loplugin:staticanonymous -> redundantstatic: sd
Change-Id: I4a7a3771890e3b7f782954a1bdce9e55db99739c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97656
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source/ui/framework')
7 files changed, 19 insertions, 19 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx index b7eccd19c610..6083757b4087 100644 --- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx @@ -38,11 +38,11 @@ using ::sd::framework::FrameworkHelper; using ::std::vector; namespace { -static const sal_Int32 snShortTimeout (100); -static const sal_Int32 snNormalTimeout (1000); -static const sal_Int32 snLongTimeout (10000); -static const sal_Int32 snShortTimeoutCountThreshold (1); -static const sal_Int32 snNormalTimeoutCountThreshold (5); +const sal_Int32 snShortTimeout (100); +const sal_Int32 snNormalTimeout (1000); +const sal_Int32 snLongTimeout (10000); +const sal_Int32 snShortTimeoutCountThreshold (1); +const sal_Int32 snNormalTimeoutCountThreshold (5); } namespace sd::framework { diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.cxx b/sd/source/ui/framework/factories/BasicPaneFactory.cxx index cf23c8947e4c..969981c2c7be 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.cxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.cxx @@ -48,8 +48,8 @@ namespace { LeftDrawPaneId }; - static const sal_Int32 gnConfigurationUpdateStartEvent(0); - static const sal_Int32 gnConfigurationUpdateEndEvent(1); + const sal_Int32 gnConfigurationUpdateStartEvent(0); + const sal_Int32 gnConfigurationUpdateEndEvent(1); } namespace sd::framework { diff --git a/sd/source/ui/framework/factories/PresentationFactory.cxx b/sd/source/ui/framework/factories/PresentationFactory.cxx index 6b46e413fe2c..7384b8612fbb 100644 --- a/sd/source/ui/framework/factories/PresentationFactory.cxx +++ b/sd/source/ui/framework/factories/PresentationFactory.cxx @@ -86,7 +86,7 @@ private: //===== PresentationFactory =================================================== -static const char gsPresentationViewURL[] = "private:resource/view/Presentation"; +const char gsPresentationViewURL[] = "private:resource/view/Presentation"; PresentationFactory::PresentationFactory ( const Reference<frame::XController>& rxController) diff --git a/sd/source/ui/framework/module/ModuleController.cxx b/sd/source/ui/framework/module/ModuleController.cxx index bffbe4cd6f74..b18d9be163e7 100644 --- a/sd/source/ui/framework/module/ModuleController.cxx +++ b/sd/source/ui/framework/module/ModuleController.cxx @@ -36,8 +36,8 @@ using ::sd::tools::ConfigurationAccess; namespace sd::framework { -static const sal_uInt32 snFactoryPropertyCount (2); -static const sal_uInt32 snStartupPropertyCount (1); +const sal_uInt32 snFactoryPropertyCount (2); +const sal_uInt32 snStartupPropertyCount (1); class ModuleController::ResourceToFactoryMap : public std::unordered_map< diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx b/sd/source/ui/framework/module/SlideSorterModule.cxx index 2f5d55b7eb84..1aa96bd0b2d4 100644 --- a/sd/source/ui/framework/module/SlideSorterModule.cxx +++ b/sd/source/ui/framework/module/SlideSorterModule.cxx @@ -37,8 +37,8 @@ using namespace ::com::sun::star::drawing::framework; using ::sd::framework::FrameworkHelper; namespace { - static const sal_Int32 ResourceActivationRequestEvent = 0; - static const sal_Int32 ResourceDeactivationRequestEvent = 1; + const sal_Int32 ResourceActivationRequestEvent = 0; + const sal_Int32 ResourceDeactivationRequestEvent = 1; } namespace sd::framework { diff --git a/sd/source/ui/framework/module/ToolBarModule.cxx b/sd/source/ui/framework/module/ToolBarModule.cxx index 75c1622b56d7..969a94f031c5 100644 --- a/sd/source/ui/framework/module/ToolBarModule.cxx +++ b/sd/source/ui/framework/module/ToolBarModule.cxx @@ -30,10 +30,10 @@ using namespace ::com::sun::star::drawing::framework; using ::sd::framework::FrameworkHelper; namespace { - static const sal_Int32 gnConfigurationUpdateStartEvent(0); - static const sal_Int32 gnConfigurationUpdateEndEvent(1); - static const sal_Int32 gnResourceActivationRequestEvent(2); - static const sal_Int32 gnResourceDeactivationRequestEvent(3); + const sal_Int32 gnConfigurationUpdateStartEvent(0); + const sal_Int32 gnConfigurationUpdateEndEvent(1); + const sal_Int32 gnResourceActivationRequestEvent(2); + const sal_Int32 gnResourceDeactivationRequestEvent(3); } namespace sd::framework { diff --git a/sd/source/ui/framework/module/ViewTabBarModule.cxx b/sd/source/ui/framework/module/ViewTabBarModule.cxx index 692a0ab5c349..994e09e816fd 100644 --- a/sd/source/ui/framework/module/ViewTabBarModule.cxx +++ b/sd/source/ui/framework/module/ViewTabBarModule.cxx @@ -35,9 +35,9 @@ using ::sd::framework::FrameworkHelper; namespace { -static const sal_Int32 ResourceActivationRequestEvent = 0; -static const sal_Int32 ResourceDeactivationRequestEvent = 1; -static const sal_Int32 ResourceActivationEvent = 2; +const sal_Int32 ResourceActivationRequestEvent = 0; +const sal_Int32 ResourceDeactivationRequestEvent = 1; +const sal_Int32 ResourceActivationEvent = 2; } |