summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/svtools/editbrowsebox.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx
index 5d76e28e46f6..2c66a3cb612e 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -452,7 +452,7 @@ namespace svt
class BrowserMouseEventPtr
{
- BrowserMouseEvent* pEvent;
+ std::unique_ptr<BrowserMouseEvent> pEvent;
bool bDown;
public:
@@ -461,11 +461,10 @@ namespace svt
, bDown(false)
{
}
- ~BrowserMouseEventPtr(){Clear();}
bool Is() const {return pEvent != nullptr;}
bool IsDown() const {return bDown;}
- const BrowserMouseEvent* operator->() const {return pEvent;}
+ const BrowserMouseEvent* operator->() const {return pEvent.get();}
SVT_DLLPUBLIC void Clear();
void Set(const BrowserMouseEvent* pEvt, bool bIsDown);