diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> | 2012-07-09 12:15:53 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-10 16:23:35 +0100 |
commit | f2c09d47407ec8bdd55f789fdba7ff02e14783e8 (patch) | |
tree | 7aea519d791d26ebfde3a06c5ddc55b5ced21fe2 /vcl | |
parent | 34f8b2b78ec7f7397e6ca9c69b6a77a9c6aa58a3 (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.cxx | 3 |
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 ); |