[Libreoffice-commits] .: codemaker/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 10:09:06 PST 2012


 codemaker/source/cppumaker/cppumaker.cxx |    2 +-
 codemaker/source/javamaker/javamaker.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 625e173aaf1816686853f6142227519dc7c37544
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Nov 28 20:07:22 2012 +0200

    OUString::replace() does not replace in-place
    
    Change-Id: I5a1d713ee8e9c913adad57b7d8fb0597f96a2db4

diff --git a/codemaker/source/cppumaker/cppumaker.cxx b/codemaker/source/cppumaker/cppumaker.cxx
index c3aee2a..7910149 100644
--- a/codemaker/source/cppumaker/cppumaker.cxx
+++ b/codemaker/source/cppumaker/cppumaker.cxx
@@ -196,7 +196,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
                         if (tmpName.isEmpty())
                             tmpName = "/";
                         else
-                            tmpName.replace('.', '/');
+                            tmpName = tmpName.replace('.', '/');
                     }
                     // related to task #116780# the scope is recursively
                     // generated.  bFullScope = true
diff --git a/codemaker/source/javamaker/javamaker.cxx b/codemaker/source/javamaker/javamaker.cxx
index c64fce2..af4796d 100644
--- a/codemaker/source/javamaker/javamaker.cxx
+++ b/codemaker/source/javamaker/javamaker.cxx
@@ -188,7 +188,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
                         if (tmpName.isEmpty())
                             tmpName = "/";
                         else
-                            tmpName.replace('.', '/');
+                            tmpName = tmpName.replace('.', '/');
                     }
                     // related to task #116780# the scope is recursively
                     // generated.  bFullScope = true


More information about the Libreoffice-commits mailing list