From de74d98c58db604aafc0ee623c252f3aa25ac4b7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 20 Sep 2020 12:53:27 +0100 Subject: OUStringLiteral/OStringLiteral coverity PARSE_ERROR workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit do more like commit 121771e37f7e2de41cd5643475861062bf25627b Date: Mon Sep 21 09:17:54 2020 +0200 Make some OUStringLiteral vars constexpr cause coverity can live with that Change-Id: I9efd7f848289c4865997a44c6780373068422227 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103147 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/unoidl/unoobj.cxx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'sd/source/ui/unoidl') diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 9e29e3e47b89..4b27bd429af0 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -1058,21 +1058,21 @@ uno::Reference< container::XNameReplace > SAL_CALL SdXShape::getEvents( ) return new SdUnoEventsAccess( this ); } -const OUStringLiteral gaStrOnClick( u"OnClick" ); -const OUStringLiteral gaStrServiceName( u"com.sun.star.documents.Events" ); -const OUStringLiteral gaStrEventType( u"EventType" ); -const OUStringLiteral gaStrPresentation( u"Presentation" ); -const OUStringLiteral gaStrLibrary(u"Library"); -const OUStringLiteral gaStrMacroName(u"MacroName"); -const OUStringLiteral gaStrClickAction( u"ClickAction" ); -const OUStringLiteral gaStrBookmark( u"Bookmark" ); -const OUStringLiteral gaStrEffect( u"Effect" ); -const OUStringLiteral gaStrPlayFull( u"PlayFull" ); -const OUStringLiteral gaStrVerb( u"Verb" ); -const OUStringLiteral gaStrSoundURL( u"SoundURL" ); -const OUStringLiteral gaStrSpeed( u"Speed" ); -const OUStringLiteral gaStrStarBasic( u"StarBasic" ); -const OUStringLiteral gaStrScript( u"Script" ); +constexpr OUStringLiteral gaStrOnClick( u"OnClick" ); +constexpr OUStringLiteral gaStrServiceName( u"com.sun.star.documents.Events" ); +constexpr OUStringLiteral gaStrEventType( u"EventType" ); +constexpr OUStringLiteral gaStrPresentation( u"Presentation" ); +constexpr OUStringLiteral gaStrLibrary(u"Library"); +constexpr OUStringLiteral gaStrMacroName(u"MacroName"); +constexpr OUStringLiteral gaStrClickAction( u"ClickAction" ); +constexpr OUStringLiteral gaStrBookmark( u"Bookmark" ); +constexpr OUStringLiteral gaStrEffect( u"Effect" ); +constexpr OUStringLiteral gaStrPlayFull( u"PlayFull" ); +constexpr OUStringLiteral gaStrVerb( u"Verb" ); +constexpr OUStringLiteral gaStrSoundURL( u"SoundURL" ); +constexpr OUStringLiteral gaStrSpeed( u"Speed" ); +constexpr OUStringLiteral gaStrStarBasic( u"StarBasic" ); +constexpr OUStringLiteral gaStrScript( u"Script" ); SdUnoEventsAccess::SdUnoEventsAccess( SdXShape* pShape ) throw() : mpShape( pShape ) -- cgit