[Libreoffice-commits] .: sw/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Fri Jan 28 06:31:12 PST 2011


 sw/source/core/fields/docufld.cxx |    2 +-
 sw/source/filter/html/swhtml.cxx  |    2 +-
 sw/source/ui/uiview/srcview.cxx   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 05d15b0c5aa55abf2655998d8dc237909a959e68
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Fri Jan 28 15:31:00 2011 +0100

    Replace empty equalsAscii() with getLength().

diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index de08e84..01c705f 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -630,7 +630,7 @@ String SwTemplNameFieldType::Expand(ULONG nFmt) const
 
         if( FF_UI_NAME == nFmt )
             aRet = xDocProps->getTemplateName();
-        else if( !xDocProps->getTemplateURL().equalsAscii("") )
+        else if( xDocProps->getTemplateURL().getLength() )
         {
             if( FF_UI_RANGE == nFmt )
             {
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 62e54bb..3bec5a5 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -863,7 +863,7 @@ if( pSttNdIdx->GetIndex()+1 == pPam->GetBound( FALSE ).nNode.GetIndex() )
                     xDPS->getDocumentProperties());
                 DBG_ASSERT(xDocProps.is(), "DocumentProperties is null");
                 if ( xDocProps.is() && (xDocProps->getAutoloadSecs() > 0) &&
-                     xDocProps->getAutoloadURL().equalsAscii("") )
+                     (xDocProps->getAutoloadURL().getLength() == 0) )
                 {
                     xDocProps->setAutoloadURL(aPathToFile);
                 }
diff --git a/sw/source/ui/uiview/srcview.cxx b/sw/source/ui/uiview/srcview.cxx
index d6f585d..1cb9060 100644
--- a/sw/source/ui/uiview/srcview.cxx
+++ b/sw/source/ui/uiview/srcview.cxx
@@ -253,7 +253,7 @@ SwSrcView::~SwSrcView()
     ::rtl::OUString url = xDocProps->getAutoloadURL();
     sal_Int32 delay = xDocProps->getAutoloadSecs();
     pDocShell->SetAutoLoad(INetURLObject(url), delay,
-                            (delay != 0) || !url.equalsAscii(""));
+                            (delay != 0) || url.getLength());
     EndListening(*pDocShell);
     delete pSearchItem;
 }


More information about the Libreoffice-commits mailing list