[Libreoffice-commits] .: filter/source writerfilter/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Fri Jan 28 07:14:01 PST 2011


 filter/source/config/cache/typedetection.cxx      |    4 ++--
 writerfilter/source/dmapper/DomainMapper_Impl.cxx |   10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit f530e1bf994701c79cac19574afd2d2d37fb2f78
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Fri Jan 28 16:07:22 2011 +0100

    Replace suitable equalsAscii calls with equalsAsciiL.

diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index cb30df0..b8815f9 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -261,7 +261,7 @@ void TypeDetection::impl_checkResultsAndAddBestFilter(::comphelper::MediaDescrip
             if (
                 (sDocumentService.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.sheet.SpreadsheetDocument"))) &&
                 (
-                    (sRealType.equalsAscii("writer_Text"        )) ||
+                    (sRealType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("writer_Text"))) ||
                     (sRealType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("writer_Text_encoded")))
                 )
                )
@@ -271,7 +271,7 @@ void TypeDetection::impl_checkResultsAndAddBestFilter(::comphelper::MediaDescrip
             else
             if (
                 (sDocumentService.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.TextDocument"))) &&
-                (sRealType.equalsAscii("calc_Text_txt_csv_StarCalc"           ))
+                (sRealType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("calc_Text_txt_csv_StarCalc")))
                )
             {
                 sRealType = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "writer_Text" ));
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 4030834..111c22f 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -2456,7 +2456,7 @@ void DomainMapper_Impl::CloseFieldCommand()
                         
                         while (aPartIt != aItEnd) 
                         {
-                            if (aPartIt->equalsAscii("\\l"))
+                            if (aPartIt->equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("\\l")))
                             {
                                 aPartIt++;
                                 
@@ -2466,12 +2466,12 @@ void DomainMapper_Impl::CloseFieldCommand()
                                 sURL = OUString('#');
                                 sURL += *aPartIt;
                             }
-                            else if (aPartIt->equalsAscii("\\m") ||
-                                     aPartIt->equalsAscii("\\n"))
+                            else if (aPartIt->equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("\\m")) ||
+                                     aPartIt->equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("\\n")))
                             {
                             }
-                            else if (aPartIt->equalsAscii("\\o") ||
-                                     aPartIt->equalsAscii("\\t"))
+                            else if (aPartIt->equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("\\o")) ||
+                                     aPartIt->equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("\\t")))
                             {
                                 aPartIt++;
                                 


More information about the Libreoffice-commits mailing list