diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-02-24 20:01:23 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-03-16 13:36:11 +0100 |
commit | 23bdf47e68c5b86e811e6f3dc27ed3e49788f674 (patch) | |
tree | f78b70152b2dcf7a8be188ed0f34afa68571d431 /vcl/unx/kde4/KDESalFrame.cxx | |
parent | ae174b009bcf0f84073b9ebbf01ad31b274b789e (diff) |
KDE fix various clang plugin complains
Fixes clang plugin reported problems in the KDE and KDE4 backend.
Change-Id: I0280beae9dd6f33ee59bdbe89cd38222f33fdc68
Diffstat (limited to 'vcl/unx/kde4/KDESalFrame.cxx')
-rw-r--r-- | vcl/unx/kde4/KDESalFrame.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx index 2d4b1eb24470..9ff22c93fe46 100644 --- a/vcl/unx/kde4/KDESalFrame.cxx +++ b/vcl/unx/kde4/KDESalFrame.cxx @@ -345,7 +345,7 @@ void KDESalFrame::ReleaseGraphics( SalGraphics *pGraphics ) { for( int i = 0; i < nMaxGraphics; i++ ) { - if( m_aGraphics[i].pGraphics == pGraphics ) + if( m_aGraphics[i].pGraphics.get() == pGraphics ) { m_aGraphics[i].bInUse = false; break; @@ -363,14 +363,6 @@ void KDESalFrame::updateGraphics( bool bClear ) } } -KDESalFrame::~KDESalFrame() -{ -} - -KDESalFrame::GraphicsHolder::~GraphicsHolder() -{ -} - SalGraphics* KDESalFrame::AcquireGraphics() { if( GetWindow() ) @@ -382,10 +374,10 @@ SalGraphics* KDESalFrame::AcquireGraphics() m_aGraphics[i].bInUse = true; if( ! m_aGraphics[i].pGraphics ) { - m_aGraphics[i].pGraphics = new KDESalGraphics; + m_aGraphics[i].pGraphics.reset( new KDESalGraphics ); m_aGraphics[i].pGraphics->Init( this, GetWindow(), GetScreenNumber() ); } - return m_aGraphics[i].pGraphics; + return m_aGraphics[i].pGraphics.get(); } } } |