[PATCH] Remove last usage of RTL_CONSTASCII_STRINGPARAM in basctl

Marcos Souza (via Code Review) gerrit at gerrit.libreoffice.org
Sat Dec 29 05:42:52 PST 2012


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1502

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/02/1502/1

Remove last usage of RTL_CONSTASCII_STRINGPARAM in basctl

Change-Id: I5bc79699e794de47611d785b9ae48b4badf9f2f6
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
---
M basctl/source/basicide/moduldl2.cxx
M basctl/source/basicide/scriptdocument.cxx
2 files changed, 5 insertions(+), 5 deletions(-)



diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 3245042..1fd2e47 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -288,7 +288,7 @@
 
     // check, if Standard library
     OUString aLibName = GetEntryText( pEntry, 0 );
-    if ( aLibName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Standard" ) ) )
+    if ( aLibName.equalsIgnoreAsciiCase( "Standard" ) )
     {
         ErrorBox( this, WB_OK | WB_DEF_OK, IDE_RESSTR(RID_STR_CANNOTCHANGENAMESTDLIB) ).Execute();
         return false;
@@ -572,7 +572,7 @@
             aInsertLibButton.Disable();
             aDelButton.Disable();
         }
-        else if ( aLibName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Standard" ) ) )
+        else if ( aLibName.equalsIgnoreAsciiCase( "Standard" ) )
         {
             aPasswordButton.Disable();
             aNewLibButton.Enable();
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx
index c1256b5..b184974 100644
--- a/basctl/source/basicide/scriptdocument.cxx
+++ b/basctl/source/basicide/scriptdocument.cxx
@@ -942,14 +942,14 @@
             Reference< XUriReference > xUriRef( xUriFac->parse( aLinkURL ), UNO_QUERY_THROW );
 
             OUString aScheme = xUriRef->getScheme();
-            if ( aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("file")) )
+            if ( aScheme.equalsIgnoreAsciiCase("file") )
             {
                 aFileURL = aLinkURL;
             }
-            else if ( aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.pkg")) )
+            else if ( aScheme.equalsIgnoreAsciiCase("vnd.sun.star.pkg") )
             {
                 OUString aAuthority = xUriRef->getAuthority();
-                if ( aAuthority.matchIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.expand:")) )
+                if ( aAuthority.matchIgnoreAsciiCase("vnd.sun.star.expand:") )
                 {
                     OUString aDecodedURL( aAuthority.copy( sizeof ( "vnd.sun.star.expand:" ) - 1 ) );
                     aDecodedURL = ::rtl::Uri::decode( aDecodedURL, rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );

-- 
To view, visit https://gerrit.libreoffice.org/1502
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bc79699e794de47611d785b9ae48b4badf9f2f6
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Marcos Souza <marcos.souza.org at gmail.com>



More information about the LibreOffice mailing list