diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 14:38:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 16:12:11 +0200 |
commit | 0bb521f4f9a5af955c704339ffbe02475c8e48cc (patch) | |
tree | 134acbdb026d2e38733398eb69943b4c2d513f76 /UnoControls | |
parent | e1c7cb5d2759341fc235eb41c80a0dbc9107db5c (diff) |
loplugin:returnconstval in UnoControls
Change-Id: I6e855ee6dc2075334e92803d87e660f389b54d53
Reviewed-on: https://gerrit.libreoffice.org/78055
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/controls/framecontrol.cxx | 7 | ||||
-rw-r--r-- | UnoControls/source/controls/progressbar.cxx | 4 | ||||
-rw-r--r-- | UnoControls/source/controls/progressmonitor.cxx | 4 | ||||
-rw-r--r-- | UnoControls/source/controls/statusindicator.cxx | 4 | ||||
-rw-r--r-- | UnoControls/source/inc/framecontrol.hxx | 4 | ||||
-rw-r--r-- | UnoControls/source/inc/progressbar.hxx | 4 | ||||
-rw-r--r-- | UnoControls/source/inc/progressmonitor.hxx | 4 | ||||
-rw-r--r-- | UnoControls/source/inc/statusindicator.hxx | 4 |
8 files changed, 17 insertions, 18 deletions
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx index 29545629b508..a954c112d6f1 100644 --- a/UnoControls/source/controls/framecontrol.cxx +++ b/UnoControls/source/controls/framecontrol.cxx @@ -250,15 +250,14 @@ void SAL_CALL FrameControl::unadvise( const Type& aTyp // impl but public method to register service -const Sequence< OUString > FrameControl::impl_getStaticSupportedServiceNames() +Sequence< OUString > FrameControl::impl_getStaticSupportedServiceNames() { - Sequence<OUString> seqServiceNames { "com.sun.star.frame.FrameControl" }; - return seqServiceNames; + return { "com.sun.star.frame.FrameControl" }; } // impl but public method to register service -const OUString FrameControl::impl_getStaticImplementationName() +OUString FrameControl::impl_getStaticImplementationName() { return "stardiv.UnoControls.FrameControl"; } diff --git a/UnoControls/source/controls/progressbar.cxx b/UnoControls/source/controls/progressbar.cxx index 79fd29a6c5a1..37ac9e379195 100644 --- a/UnoControls/source/controls/progressbar.cxx +++ b/UnoControls/source/controls/progressbar.cxx @@ -285,14 +285,14 @@ Reference< XControlModel > SAL_CALL ProgressBar::getModel() // impl but public method to register service -const Sequence< OUString > ProgressBar::impl_getStaticSupportedServiceNames() +Sequence< OUString > ProgressBar::impl_getStaticSupportedServiceNames() { return css::uno::Sequence<OUString>(); } // impl but public method to register service -const OUString ProgressBar::impl_getStaticImplementationName() +OUString ProgressBar::impl_getStaticImplementationName() { return "stardiv.UnoControls.ProgressBar"; } diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx index c510cca4e18d..f973bc89c072 100644 --- a/UnoControls/source/controls/progressmonitor.cxx +++ b/UnoControls/source/controls/progressmonitor.cxx @@ -522,13 +522,13 @@ void SAL_CALL ProgressMonitor::setPosSize ( sal_Int32 nX, sal_Int32 nY, sal_Int3 } // impl but public method to register service -const Sequence< OUString > ProgressMonitor::impl_getStaticSupportedServiceNames() +Sequence< OUString > ProgressMonitor::impl_getStaticSupportedServiceNames() { return css::uno::Sequence<OUString>(); } // impl but public method to register service -const OUString ProgressMonitor::impl_getStaticImplementationName() +OUString ProgressMonitor::impl_getStaticImplementationName() { return "stardiv.UnoControls.ProgressMonitor"; } diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx index c1867742f0b5..7ac0cd9a4b40 100644 --- a/UnoControls/source/controls/statusindicator.cxx +++ b/UnoControls/source/controls/statusindicator.cxx @@ -340,14 +340,14 @@ void SAL_CALL StatusIndicator::setPosSize ( // impl but public method to register service -const Sequence< OUString > StatusIndicator::impl_getStaticSupportedServiceNames() +Sequence< OUString > StatusIndicator::impl_getStaticSupportedServiceNames() { return css::uno::Sequence<OUString>(); } // impl but public method to register service -const OUString StatusIndicator::impl_getStaticImplementationName() +OUString StatusIndicator::impl_getStaticImplementationName() { return "stardiv.UnoControls.StatusIndicator"; } diff --git a/UnoControls/source/inc/framecontrol.hxx b/UnoControls/source/inc/framecontrol.hxx index c76bc75163db..2ed78f7bddfe 100644 --- a/UnoControls/source/inc/framecontrol.hxx +++ b/UnoControls/source/inc/framecontrol.hxx @@ -127,9 +127,9 @@ public: // impl but public methods to register service! - static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); + static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); - static const OUString impl_getStaticImplementationName(); + static OUString impl_getStaticImplementationName(); protected: using OPropertySetHelper::getFastPropertyValue; diff --git a/UnoControls/source/inc/progressbar.hxx b/UnoControls/source/inc/progressbar.hxx index 77b7e7ff4852..9313bcb45e92 100644 --- a/UnoControls/source/inc/progressbar.hxx +++ b/UnoControls/source/inc/progressbar.hxx @@ -115,9 +115,9 @@ public: // BaseControl - static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); + static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); - static const OUString impl_getStaticImplementationName(); + static OUString impl_getStaticImplementationName(); protected: virtual void impl_paint( diff --git a/UnoControls/source/inc/progressmonitor.hxx b/UnoControls/source/inc/progressmonitor.hxx index 65b7a47a58fa..38ad0adcc3ae 100644 --- a/UnoControls/source/inc/progressmonitor.hxx +++ b/UnoControls/source/inc/progressmonitor.hxx @@ -217,9 +217,9 @@ public: // BaseControl - static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); + static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); - static const OUString impl_getStaticImplementationName(); + static OUString impl_getStaticImplementationName(); protected: virtual void impl_paint( sal_Int32 nX , diff --git a/UnoControls/source/inc/statusindicator.hxx b/UnoControls/source/inc/statusindicator.hxx index abd50d94d0ed..884034c1747b 100644 --- a/UnoControls/source/inc/statusindicator.hxx +++ b/UnoControls/source/inc/statusindicator.hxx @@ -155,9 +155,9 @@ public: // BaseControl - static const css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); + static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames(); - static const OUString impl_getStaticImplementationName(); + static OUString impl_getStaticImplementationName(); protected: virtual css::awt::WindowDescriptor impl_getWindowDescriptor( |