[Libreoffice-commits] .: comphelper/source

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


 comphelper/source/misc/locale.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8a961ac1114023ffaa844c09291de55fe81d4eb0
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Nov 28 20:23:23 2012 +0200

    OUString::trim() does not modify in-place
    
    Change-Id: I522e579253d3b59bcc72010bfbb5d09d9f558fa1

diff --git a/comphelper/source/misc/locale.cxx b/comphelper/source/misc/locale.cxx
index 9bfea80..4853033 100644
--- a/comphelper/source/misc/locale.cxx
+++ b/comphelper/source/misc/locale.cxx
@@ -129,7 +129,7 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
     m_sVariant  = ::rtl::OUString();
 
     ::rtl::OUString sParser(sISO);
-    sParser.trim();
+    sParser = sParser.trim();
 
     sal_Int32 nStart = 0;
     sal_Int32 nEnd   = 0;


More information about the Libreoffice-commits mailing list