diff options
author | Ryan McCoskrie <ryan.mccoskrie@gmail.com> | 2015-08-20 16:42:01 +1200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-09-09 11:24:21 +0200 |
commit | ba8cdfca4d875af0c95622c7b87a8291e130865a (patch) | |
tree | 6b7b39a727549c34203c60b652aea2cd15413bd1 /vcl/unx/kde4/KDESalGraphics.hxx | |
parent | 773aecc810b1b39c0c3cc78eabf03054c9d113f1 (diff) |
tdf#92649: Converted pointers to unique_ptr's in vcl/unx/kde4
Change-Id: I1bab95a9a3db765d3b3bd34345dc006ccd33caf0
Diffstat (limited to 'vcl/unx/kde4/KDESalGraphics.hxx')
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.hxx b/vcl/unx/kde4/KDESalGraphics.hxx index daa911198408..37a96b9f308d 100644 --- a/vcl/unx/kde4/KDESalGraphics.hxx +++ b/vcl/unx/kde4/KDESalGraphics.hxx @@ -19,6 +19,8 @@ #pragma once +#include <memory> + #include <rtl/string.hxx> #include <unx/saldisp.hxx> #include <unx/salgdi.h> @@ -28,13 +30,10 @@ /** handles graphics drawings requests and performs the needed drawing operations */ class KDESalGraphics : public X11SalGraphics { - QImage* m_image; + std::unique_ptr<QImage> m_image; QRect lastPopupRect; public: - KDESalGraphics(); - virtual ~KDESalGraphics(); - /** What widgets can be drawn the native way. @param type Type of the widget. |