sc/source/ui/unoobj/scdetect.cxx   |   22 +++++++++++-----------
 sc/source/ui/vba/vbafilesearch.cxx |    2 +-
 2 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 552a9862f8a11d8e3b86eef710d91a322a3a2946
Author: Takeshi Abe <t...@fixedpoint.jp>
Date:   Sat Feb 25 23:15:00 2012 +0900

    Avoid temporary rtl::OUString

diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index d9b644f..c1f2795 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -273,22 +273,22 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
     for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
     {
         // extract properties
-        if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) )
+        if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL")) )
         {
             lDescriptor[nProperty].Value >>= sTemp;
             aURL = sTemp;
         }
-        else if( !aURL.Len() && lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("FileName")) )
+        else if( !aURL.Len() && 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FileName"))
 )
         {
             lDescriptor[nProperty].Value >>= sTemp;
             aURL = sTemp;
         }
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("TypeName"))
 )
         {
             lDescriptor[nProperty].Value >>= sTemp;
             aTypeName = sTemp;
         }
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FilterName"))
 )
         {
             lDescriptor[nProperty].Value >>= sTemp;
             aPreselectedFilterName = sTemp;
@@ -297,22 +297,22 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream )
             // remember index of property to get access to it later
             nIndexOfFilterName = nProperty;
         }
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InputStream"))
 )
             nIndexOfInputStream = nProperty;
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("ReadOnly")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ReadOnly"))
 )
             nIndexOfReadOnlyFlag = nProperty;
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("UCBContent")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("UCBContent"))
 )
             nIndexOfContent = nProperty;
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("AsTemplate")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("AsTemplate"))
 )
         {
             lDescriptor[nProperty].Value >>= bOpenAsTemplate;
             nIndexOfTemplateFlag = nProperty;
         }
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("InteractionHandler")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InteractionHandler"))
 )
             lDescriptor[nProperty].Value >>= xInteraction;
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("RepairPackage")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("RepairPackage"))
 )
             lDescriptor[nProperty].Value >>= bRepairPackage;
-        else if( lDescriptor[nProperty].Name == 
OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentTitle")) )
+        else if( 
lDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DocumentTitle"))
 )
             nIndexOfDocumentTitle = nProperty;
     }
 
diff --git a/sc/source/ui/vba/vbafilesearch.cxx 
b/sc/source/ui/vba/vbafilesearch.cxx
index 91e8c7a..928ed9a 100644
--- a/sc/source/ui/vba/vbafilesearch.cxx
+++ b/sc/source/ui/vba/vbafilesearch.cxx
@@ -171,7 +171,7 @@ sal_Int32 SAL_CALL ScVbaFileSearch::Execute( )  throw 
(css::uno::RuntimeExceptio
         return 0;
     }
 
-    if ( m_sFileName == ::rtl::OUString() )
+    if ( m_sFileName.isEmpty() )
     {
         return 1;
     }
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to