[Libreoffice-commits] core.git: vcl/unx
Chris
chris.sherlock79 at gmail.com
Wed Mar 13 01:32:58 PDT 2013
vcl/unx/gtk/app/gtkdata.cxx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
New commits:
commit bc7202aad393b17d0e2545001f7f869f683a7ec7
Author: Chris <chris.sherlock79 at gmail.com>
Date: Wed Mar 13 18:27:50 2013 +1100
Remove RTL_CONSTASCII_USTRINGPARAM and remove rtl:: namespace for strings
Change-Id: I7327cfe644cc7c948692dff66f416f85a4e4ae40
Reviewed-on: https://gerrit.libreoffice.org/2693
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
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 @@ void GtkData::Init()
// 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 @@ void GtkData::Init()
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 @@ void GtkData::Init()
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 @@ void GtkData::Init()
* 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 );
More information about the Libreoffice-commits
mailing list