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>
This commit is contained in:
parent
e1c7cb5d27
commit
0bb521f4f9
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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(
|
||||
|
@ -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 ,
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user