summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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