diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-26 22:59:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-27 08:00:32 +0200 |
commit | 9c8fd7d1c5553e1e50dba7c7c32ef15fcdb0b49d (patch) | |
tree | 345951559eba7aca1ead5ea9ff37450792a6833e /svtools | |
parent | a6050c32f30796743f9ab9b2a5c793ced9b8f747 (diff) |
Clean up sEmpty
Change-Id: If1b2bfe308caa2bce92e73d2c5c86ee273faed93
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index cb113b11cbc2..842a07331cfd 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -50,7 +50,6 @@ SvBaseEventDescriptor::SvBaseEventDescriptor( const SvEventDescription* pSupport sScript("Script"), sNone("None"), sServiceName(sAPI_ServiceName), - sEmpty(), mpSupportedMacroItems(pSupportedMacroItems), mnMacroItems(0) { @@ -86,7 +85,7 @@ void SvBaseEventDescriptor::replaceByName( rElement >>= aSequence; // perform replace (in subclass) - SvxMacro aMacro(sEmpty,sEmpty); + SvxMacro aMacro("",""); getMacroFromAny(aMacro, rElement); replaceByName(nMacroID, aMacro); } @@ -106,7 +105,7 @@ Any SvBaseEventDescriptor::getByName( // perform get (in subclass) Any aAny; - SvxMacro aMacro( sEmpty, sEmpty ); + SvxMacro aMacro( "", "" ); getByName(aMacro, nMacroID); getAnyFromMacro(aAny, aMacro); return aAny; @@ -338,7 +337,7 @@ void SvBaseEventDescriptor::getMacroFromAny( if (bNone) { // return empty macro - rMacro = SvxMacro( sEmpty, sEmpty ); + rMacro = SvxMacro( "", "" ); } else { @@ -411,7 +410,7 @@ void SvEventDescriptor::getByName( rMacro = rItem.GetMacro(nEvent); else { - SvxMacro aEmptyMacro(sEmpty, sEmpty); + SvxMacro aEmptyMacro("", ""); rMacro = aEmptyMacro; } } @@ -547,7 +546,7 @@ void SvMacroTableEventDescriptor::copyMacrosIntoTable( const sal_uInt16 nEvent = mpSupportedMacroItems[i].mnEvent; if (hasById(nEvent)) { - SvxMacro& rMacro = rMacroTable.Insert(nEvent, SvxMacro(sEmpty, sEmpty)); + SvxMacro& rMacro = rMacroTable.Insert(nEvent, SvxMacro("", "")); getByName(rMacro, nEvent); } } |