From f2c09d47407ec8bdd55f789fdba7ff02e14783e8 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Mon, 9 Jul 2012 12:15:53 +0200 Subject: solaris: fix compilation error by adding temp var holding const_cast result Change-Id: I3e42bb8dae6ad628f5414d8e46616432a704679f --- vcl/unx/generic/app/wmadaptor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl/unx') 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(pText); XmbTextListToTextProperty( m_pDisplay, - &const_cast(pText), + &pT, 1, XStdICCTextStyle, &aTestProp ); -- cgit v1.2.3