diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 12:40:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 13:17:54 +0000 |
commit | 06babf60ce9edd17e02930e60b9afdc12b40b553 (patch) | |
tree | bfb4b8c397d99b7aa6f1fb8670d3b48f4074d242 /svtools/source/uno/unoevent.cxx | |
parent | c8b09c0024cc8fb5444ca422d2ddf729a5117d1d (diff) |
loplugin:oncevar in svl..svx
Change-Id: I80b11a7b698de4b84d7a2f4c7dc62b2e4fd8bb01
Reviewed-on: https://gerrit.libreoffice.org/30438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/uno/unoevent.cxx')
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index ce3ab34dc636..c8a6a061b59b 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -35,12 +35,10 @@ using css::beans::PropertyValue; static const char sAPI_ServiceName[] = "com.sun.star.container.XNameReplace"; -static const char sAPI_SvDetachedEventDescriptor[] = "SvDetachedEventDescriptor"; static const char sEventType[] = "EventType"; static const char sMacroName[] = "MacroName"; static const char sLibrary[] = "Library"; static const char sStarBasic[] = "StarBasic"; -static const char sJavaScript[] = "JavaScript"; static const char sScript[] = "Script"; static const char sNone[] = "None"; @@ -165,7 +163,7 @@ void getMacroFromAny( eType = STARBASIC; bTypeOK = true; } - else if (sTmp == sJavaScript) + else if (sTmp == "JavaScript") { eType = JAVASCRIPT; bTypeOK = true; @@ -414,7 +412,7 @@ void SvEventDescriptor::getByName( SvDetachedEventDescriptor::SvDetachedEventDescriptor( const SvEventDescription* pSupportedMacroItems) : SvBaseEventDescriptor(pSupportedMacroItems), - sImplName(sAPI_SvDetachedEventDescriptor) + sImplName("SvDetachedEventDescriptor") { // allocate aMacros aMacros = new SvxMacro*[mnMacroItems]; |