summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>2012-07-09 12:15:53 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-07-10 16:23:35 +0100
commitf2c09d47407ec8bdd55f789fdba7ff02e14783e8 (patch)
tree7aea519d791d26ebfde3a06c5ddc55b5ced21fe2 /vcl
parent34f8b2b78ec7f7397e6ca9c69b6a77a9c6aa58a3 (diff)
solaris: fix compilation error by adding temp var holding const_cast result
Change-Id: I3e42bb8dae6ad628f5414d8e46616432a704679f
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/app/wmadaptor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index a0791e03cac1..784cf1039937 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -1038,8 +1038,9 @@ void WMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const
bOnce = false;
XTextProperty aTestProp = { NULL, None, 0, 0 };
const char *pText = "trustme";
+ char* pT = const_cast<char*>(pText);
XmbTextListToTextProperty( m_pDisplay,
- &const_cast<char*>(pText),
+ &pT,
1,
XStdICCTextStyle,
&aTestProp );