[Libreoffice-commits] .: forms/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 12:29:48 PST 2012


 forms/source/component/Filter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 85693bffad5c863e5cd4d4b3664856a9fec607d5
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Nov 28 22:28:21 2012 +0200

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

diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index 1b257a5..948bdcc 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -522,7 +522,7 @@ namespace frm
         {
             // check the text with the SQL-Parser
             ::rtl::OUString aNewText(aText);
-            aNewText.trim();
+            aNewText = aNewText.trim();
             if ( !aNewText.isEmpty() )
             {
                 ::dbtools::OPredicateInputController aPredicateInput( maContext.getUNOContext(), m_xConnection, getParseContext() );


More information about the Libreoffice-commits mailing list