summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-04-21 01:30:38 +0200
committerThomas Arnhold <thomas@arnhold.org>2012-04-21 05:53:30 +0200
commit2abba84aa7c639011956721a4922653130dd09a6 (patch)
tree01f062a3991438ab99111fb5012effa22120a2bb /unotools
parent18a9e9e844d2f3ebad52e6c45095e3c50422db1a (diff)
Replace css macro with namespace for nicer namespacing
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/itemholder1.hxx6
-rw-r--r--unotools/source/i18n/instance.hxx3
2 files changed, 2 insertions, 7 deletions
diff --git a/unotools/source/config/itemholder1.hxx b/unotools/source/config/itemholder1.hxx
index e04b423152ba..aa0775ea176b 100644
--- a/unotools/source/config/itemholder1.hxx
+++ b/unotools/source/config/itemholder1.hxx
@@ -39,11 +39,7 @@
//-----------------------------------------------
// namespaces
-#ifdef css
-#error "Cant use css as namespace alias."
-#else
-#define css ::com::sun::star
-#endif
+namespace css = ::com::sun::star;
//-----------------------------------------------
// definitions
diff --git a/unotools/source/i18n/instance.hxx b/unotools/source/i18n/instance.hxx
index 4c18d38cfd04..6a1a069ab476 100644
--- a/unotools/source/i18n/instance.hxx
+++ b/unotools/source/i18n/instance.hxx
@@ -33,8 +33,7 @@
#include <rtl/oustringostreaminserter.hxx>
#include <rtl/strbuf.hxx>
-// ugly but so is this namespacing evil.
-#define css ::com::sun::star
+namespace css = ::com::sun::star;
// Helper to share code between activators with a fallback MSF.
// Potentially this may also needs to find the library the component