summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2010-09-22 11:44:09 +0200
committerLuboš Luňák <l.lunak@suse.cz>2010-10-05 16:02:51 +0200
commitc1d5ee0970e7c5ad2ac8091a075b61ad0aab1408 (patch)
tree4c7303f1a288befee232d4c34e8e7ddace8864ed
parent7dae393ffbe5329645b8aa907490f1d7a6d430e5 (diff)
use proper type instead of void* and casting
-rw-r--r--vcl/unx/kde4/KDEXLib.cxx4
-rw-r--r--vcl/unx/kde4/KDEXLib.hxx4
2 files changed, 5 insertions, 3 deletions
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx
index 6a2793b8abe3..4cb54761892e 100644
--- a/vcl/unx/kde4/KDEXLib.cxx
+++ b/vcl/unx/kde4/KDEXLib.cxx
@@ -59,7 +59,7 @@ KDEXLib::KDEXLib() :
KDEXLib::~KDEXLib()
{
- delete (VCLKDEApplication*)m_pApplication;
+ delete m_pApplication;
// free the faked cmdline arguments no longer needed by KApplication
for( int i = 0; i < m_nFakeCmdLineArgs; i++ )
@@ -146,7 +146,7 @@ void KDEXLib::Init()
Display* pDisp = QX11Info::display();
SalKDEDisplay *pSalDisplay = new SalKDEDisplay(pDisp);
- ((VCLKDEApplication*)m_pApplication)->disp = pSalDisplay;
+ m_pApplication->disp = pSalDisplay;
pInputMethod->CreateMethod( pDisp );
pInputMethod->AddConnectionWatch( pDisp, (void*)this );
diff --git a/vcl/unx/kde4/KDEXLib.hxx b/vcl/unx/kde4/KDEXLib.hxx
index 985e0c3c6717..c5a8e02a77e4 100644
--- a/vcl/unx/kde4/KDEXLib.hxx
+++ b/vcl/unx/kde4/KDEXLib.hxx
@@ -29,11 +29,13 @@
#include <saldisp.hxx>
+class VCLKDEApplication;
+
class KDEXLib : public SalXLib
{
private:
bool m_bStartupDone;
- void* m_pApplication;
+ VCLKDEApplication* m_pApplication;
char** m_pFreeCmdLineArgs;
char** m_pAppCmdLineArgs;
int m_nFakeCmdLineArgs;