[Libreoffice-commits] .: fpicker/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Jan 16 13:29:20 PST 2011


 fpicker/source/unx/gnome/SalGtkFilePicker.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d1e49049453298e993a98d8aa61c35bb860acd6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jan 16 21:29:14 2011 +0000

    equalsAsciiL faster than equalsAscii

diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
index 5698f4c..d08125e 100644
--- a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
+++ b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
@@ -922,7 +922,7 @@ uno::Sequence<rtl::OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw
             }
             while( nTokenIndex >= 0 );
 
-            if( !bExtensionTypedIn && ( !sToken.equalsAscii( "*" ) ) )
+            if( !bExtensionTypedIn && ( !sToken.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("*")) ) )
             {
                 //if the filename does not already have the auto extension, stick it on
                 OUString sExtension = OUString(RTL_CONSTASCII_USTRINGPARAM( "." )) + sToken;


More information about the Libreoffice-commits mailing list