summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-29 23:33:26 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-03-30 05:05:54 +0000
commit1d060568ce8e7b8aa04c418e282962131801bea4 (patch)
treeae6c10276116e258a37a03f4f6f025eee2a03c91 /sfx2
parent709e99af4958216c75b27c07793d5140214f179d (diff)
Replace MACRO_PRFIX and MACRO_POSTFIX in eventsupplier.cxx
Change-Id: Ifd08a3414468e7685f55af66ed05f7a88187fa0e Reviewed-on: https://gerrit.libreoffice.org/23606 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/notify/eventsupplier.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 8e4e5232f3f1..b232644c2fbd 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -47,10 +47,6 @@
#include <sfx2/frame.hxx>
#include <macroloader.hxx>
-
-#define MACRO_PRFIX "macro://"
-#define MACRO_POSTFIX "()"
-
using namespace css;
@@ -458,10 +454,10 @@ void SfxEvents_Impl::NormalizeMacro( const ::comphelper::NamedValueCollection& i
}
else if ( !aMacroName.isEmpty() )
{
- aScript = MACRO_PRFIX;
+ aScript = "macro://";
if ( aLibrary != SfxGetpApp()->GetName() && aLibrary != "StarDesktop" && aLibrary != "application" )
aScript += ".";
- aScript += "/" + aMacroName + MACRO_POSTFIX;
+ aScript += "/" + aMacroName + "()";
}
else
// wrong properties