diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 21:29:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 21:29:14 +0000 |
commit | 3e0cce71cd2c272b4003d343ced40cdcea27d982 (patch) | |
tree | abb5f5d119ab03d31d2cc689e7cef9b1468c06da /fpicker | |
parent | cb3411386b57c27c3be4e4dbf63c8820429b2df1 (diff) |
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/unx/gnome/SalGtkFilePicker.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx index 4d62698dd148..6f88dcf5e414 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; |