summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/component_context.cxx6
-rw-r--r--cppuhelper/source/macro_expander.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index c79bf6d12b2e..16264dae53c4 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -44,9 +44,9 @@
#include <memory>
-#define SMGR_SINGLETON "/singletons/com.sun.star.lang.theServiceManager"
-#define TDMGR_SINGLETON "/singletons/com.sun.star.reflection.theTypeDescriptionManager"
-#define AC_SINGLETON "/singletons/com.sun.star.security.theAccessController"
+constexpr OUStringLiteral SMGR_SINGLETON = u"/singletons/com.sun.star.lang.theServiceManager";
+constexpr OUStringLiteral TDMGR_SINGLETON = u"/singletons/com.sun.star.reflection.theTypeDescriptionManager";
+constexpr OUStringLiteral AC_SINGLETON = u"/singletons/com.sun.star.security.theAccessController";
using namespace ::osl;
using namespace ::com::sun::star::uno;
diff --git a/cppuhelper/source/macro_expander.cxx b/cppuhelper/source/macro_expander.cxx
index e9a6cce3fd43..85c649dd437c 100644
--- a/cppuhelper/source/macro_expander.cxx
+++ b/cppuhelper/source/macro_expander.cxx
@@ -34,9 +34,9 @@
#include "macro_expander.hxx"
#include "paths.hxx"
-#define SERVICE_NAME_A "com.sun.star.lang.MacroExpander"
-#define SERVICE_NAME_B "com.sun.star.lang.BootstrapMacroExpander"
-#define IMPL_NAME "com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander"
+constexpr OUStringLiteral SERVICE_NAME_A = u"com.sun.star.lang.MacroExpander";
+constexpr OUStringLiteral SERVICE_NAME_B = u"com.sun.star.lang.BootstrapMacroExpander";
+constexpr OUStringLiteral IMPL_NAME = u"com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander";
using namespace ::osl;
using namespace ::com::sun::star;