summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/app/salinst.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-08 13:04:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 09:51:05 +0000
commitbca47d830eaf13f6032985982582dce3fd335e4e (patch)
treeae298bfdea100be0dcbdd86fd8bfaf757d160409 /vcl/unx/generic/app/salinst.cxx
parent4ccdf7932e84bd78a366bb4ae2785c63e33a9403 (diff)
remove ConnectionIdentifierType enum
since we only use the AsciiCString enumerator. Consequently simplify the GetConnectionIdentifier method Change-Id: I9e1a1318d2f12bfd18edeb8479e0e7171b22d0f1 Reviewed-on: https://gerrit.libreoffice.org/34026 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/app/salinst.cxx')
-rw-r--r--vcl/unx/generic/app/salinst.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/unx/generic/app/salinst.cxx b/vcl/unx/generic/app/salinst.cxx
index cf433df4c1ff..88b4b2b7677c 100644
--- a/vcl/unx/generic/app/salinst.cxx
+++ b/vcl/unx/generic/app/salinst.cxx
@@ -174,13 +174,10 @@ SalYieldResult X11SalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents,
return mpXLib->Yield( bWait, bHandleAllCurrentEvents );
}
-void* X11SalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType,
- int& rReturnedBytes )
+OUString X11SalInstance::GetConnectionIdentifier()
{
static const char* pDisplay = getenv( "DISPLAY" );
- rReturnedType = AsciiCString;
- rReturnedBytes = pDisplay ? strlen( pDisplay )+1 : 1;
- return pDisplay ? const_cast<char *>(pDisplay) : const_cast<char *>("");
+ return pDisplay ? OUString::createFromAscii(pDisplay) : OUString("");
}
SalFrame *X11SalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle )