[Libreoffice-commits] core.git: sal/rtl

Stephan Bergmann sbergman at redhat.com
Mon Feb 4 08:29:45 PST 2013


 sal/rtl/source/bootstrap.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit af823deeeedc42de3ddf11be3518622e6acdbdd2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 4 16:42:31 2013 +0100

    Use SAL_STRINGIFY
    
    Change-Id: Ibdb7d143e02301fdd8d04cf1c59421dcd98dac2f

diff --git a/sal/rtl/source/bootstrap.cxx b/sal/rtl/source/bootstrap.cxx
index 66571c6..84d1b58 100644
--- a/sal/rtl/source/bootstrap.cxx
+++ b/sal/rtl/source/bootstrap.cxx
@@ -50,11 +50,6 @@
 #include <postmac.h>
 #endif
 
-#define MY_STRING_(x) # x
-#define MY_STRING(x) MY_STRING_(x)
-
-//----------------------------------------------------------------------------
-
 using osl::DirectoryItem;
 using osl::FileStatus;
 
@@ -509,7 +504,8 @@ bool Bootstrap_Impl::getValue(
     if (key == "_CPPU_ENV") {
         rtl_uString_assign(
             value,
-            (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MY_STRING(CPPU_ENV))).
+            (rtl::OUString(
+                RTL_CONSTASCII_USTRINGPARAM(SAL_STRINGIFY(CPPU_ENV))).
              pData));
         return true;
     }


More information about the Libreoffice-commits mailing list