[PATCH] Remove RTL_CONSTASCII_USTRINGPARAM and remove rtl:: namespac...

Chris Sherlock (via Code Review) gerrit at gerrit.libreoffice.org
Wed Mar 13 00:30:02 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2693

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/93/2693/1

Remove RTL_CONSTASCII_USTRINGPARAM and remove rtl:: namespace for strings

Change-Id: I7327cfe644cc7c948692dff66f416f85a4e4ae40
---
M vcl/unx/gtk/app/gtkdata.cxx
1 file changed, 9 insertions(+), 9 deletions(-)



diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 24fdbb6..e4a35a7 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -631,8 +631,8 @@
     // is there a -display command line parameter?
     rtl_TextEncoding aEnc = osl_getThreadTextEncoding();
     int nParams = osl_getCommandArgCount();
-    rtl::OString aDisplay;
-    rtl::OUString aParam, aBin;
+    OString aDisplay;
+    OUString aParam, aBin;
     char** pCmdLineAry = new char*[ nParams+1 ];
     osl_getExecutableFile( &aParam.pData );
     osl_getSystemPathFromFileURL( aParam.pData, &aBin.pData );
@@ -657,10 +657,10 @@
     g_set_application_name(SalGenericSystem::getFrameClassName());
 
     // Set consistant name of the root accessible
-    rtl::OUString aAppName = Application::GetAppName();
+    OUString aAppName = Application::GetAppName();
     if( !aAppName.isEmpty() )
     {
-        rtl::OString aPrgName = rtl::OUStringToOString(aAppName, aEnc);
+        OString aPrgName = rtl::OUStringToOString(aAppName, aEnc);
         g_set_prgname(aPrgName.getStr());
     }
 
@@ -681,11 +681,11 @@
     pGdkDisp = gdk_display_get_default();
     if ( !pGdkDisp )
     {
-        rtl::OUString aProgramFileURL;
+        OUString aProgramFileURL;
         osl_getExecutableFile( &aProgramFileURL.pData );
-        rtl::OUString aProgramSystemPath;
+        OUString aProgramSystemPath;
         osl_getSystemPathFromFileURL (aProgramFileURL.pData, &aProgramSystemPath.pData);
-        rtl::OString  aProgramName = rtl::OUStringToOString(
+        OString  aProgramName = rtl::OUStringToOString(
                                             aProgramSystemPath,
                                             osl_getThreadTextEncoding() );
         fprintf( stderr, "%s X11 error: Can't open display: %s\n",
@@ -703,9 +703,9 @@
      * the clipboard build another connection
      * to the xserver using $DISPLAY
      */
-    rtl::OUString envVar(RTL_CONSTASCII_USTRINGPARAM("DISPLAY"));
+    OUString envVar("DISPLAY");
     const gchar *name = gdk_display_get_name( pGdkDisp );
-    rtl::OUString envValue(name, strlen(name), aEnc);
+    OUString envValue(name, strlen(name), aEnc);
     osl_setEnvironment(envVar.pData, envValue.pData);
 
     GtkSalDisplay *pDisplay = new GtkSalDisplay( pGdkDisp );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7327cfe644cc7c948692dff66f416f85a4e4ae40
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Chris Sherlock <chris.sherlock79 at gmail.com>



More information about the LibreOffice mailing list