Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.