diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:45:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:52:40 +0200 |
commit | d69da8657043b865d9afc3ea93eba9f10e4913e3 (patch) | |
tree | 010703c33c93e2338163e6cd5b21586e1f26e648 /include/vbahelper | |
parent | 7680623292f272cf1a8cceb4abb5a67bb5469918 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): vbahelper
Change-Id: I10c543744f22a9f4db4e99c97629bb0e0b7f37db
Reviewed-on: https://gerrit.libreoffice.org/76628
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vbahelper')
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbahelperinterface.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbapropvalue.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbareturntypes.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index 9234f4ad2119..26853ad9077c 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -313,7 +313,7 @@ public: // XDefaultMethod OUString SAL_CALL getDefaultMethodName( ) override { - return OUString("Item"); + return "Item"; } // XEnumerationAccess virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override = 0; diff --git a/include/vbahelper/vbahelperinterface.hxx b/include/vbahelper/vbahelperinterface.hxx index fdcdaca9c204..20f3d7ab77ce 100644 --- a/include/vbahelper/vbahelperinterface.hxx +++ b/include/vbahelper/vbahelperinterface.hxx @@ -131,7 +131,7 @@ public: #define VBAHELPER_IMPL_XHELPERINTERFACE( classname, servicename ) \ OUString classname::getServiceImplName() \ { \ - return OUString( #classname ); \ + return #classname; \ } \ css::uno::Sequence< OUString > classname::getServiceNames() \ { \ diff --git a/include/vbahelper/vbapropvalue.hxx b/include/vbahelper/vbapropvalue.hxx index 0ea4417595d7..7c9e4bdda8ab 100644 --- a/include/vbahelper/vbapropvalue.hxx +++ b/include/vbahelper/vbapropvalue.hxx @@ -51,7 +51,7 @@ public: virtual css::uno::Any SAL_CALL getValue() override; virtual void SAL_CALL setValue( const css::uno::Any& _value ) override; - OUString SAL_CALL getDefaultPropertyName() override { return OUString("Value"); } + OUString SAL_CALL getDefaultPropertyName() override { return "Value"; } }; #endif //SC_VBA_PROPVALULE_HXX diff --git a/include/vbahelper/vbareturntypes.hxx b/include/vbahelper/vbareturntypes.hxx index 8a500ff24f94..746107358214 100644 --- a/include/vbahelper/vbareturntypes.hxx +++ b/include/vbahelper/vbareturntypes.hxx @@ -39,7 +39,7 @@ namespace ooo DefaultReturnHelper( const T1& nValue ) : mnValue( nValue ) {} virtual void SAL_CALL setValue( T1 nValue ) override { mnValue = nValue; } virtual T1 SAL_CALL getValue() override { return mnValue; } - OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); } + OUString SAL_CALL getDefaultPropertyName( ) override { return "Value"; } }; typedef DefaultReturnHelper< sal_Int32, ov::msforms::XReturnInteger > ReturnInteger_BASE; |