summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/unx/saldisp.hxx4
-rw-r--r--vcl/inc/unx/wmadaptor.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index 48756f3cbfe1..a53be3692d8b 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -280,7 +280,7 @@ protected:
KeySym nCtrlKeySym_; // first control modifier
KeySym nMod1KeySym_; // first mod1 modifier
- vcl_sal::WMAdaptor* m_pWMAdaptor;
+ std::unique_ptr<vcl_sal::WMAdaptor> m_pWMAdaptor;
bool m_bXinerama;
std::vector< tools::Rectangle > m_aXineramaScreens;
@@ -367,7 +367,7 @@ public:
SalI18N_KeyboardExtension* GetKbdExtension() const { return mpKbdExtension; }
void SetKbdExtension(SalI18N_KeyboardExtension *pKbdExtension)
{ mpKbdExtension = pKbdExtension; }
- ::vcl_sal::WMAdaptor* getWMAdaptor() const { return m_pWMAdaptor; }
+ ::vcl_sal::WMAdaptor* getWMAdaptor() const { return m_pWMAdaptor.get(); }
bool IsXinerama() const { return m_bXinerama; }
const std::vector< tools::Rectangle >& GetXineramaScreens() const { return m_aXineramaScreens; }
::Window GetRootWindow( SalX11Screen nXScreen ) const
diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx
index 6f7f4caaa85c..ff76cf638987 100644
--- a/vcl/inc/unx/wmadaptor.hxx
+++ b/vcl/inc/unx/wmadaptor.hxx
@@ -160,7 +160,7 @@ public:
/*
* creates a valid WMAdaptor instance for the SalDisplay
*/
- static WMAdaptor* createWMAdaptor( SalDisplay* );
+ static std::unique_ptr<WMAdaptor> createWMAdaptor( SalDisplay* );
/*
* may return an empty string if the window manager could