diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-10 22:00:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-10 22:00:41 +0100 |
commit | 8cfa3f4b522d54845d2218610919e721bfb6f632 (patch) | |
tree | a80dcd78f48e3700d1904f31d2e54dbe48f2350a /sd | |
parent | d543b4df8084da777ea9624619d684a14cb91cb9 (diff) |
'make screenshot' use-after-free fixes
Change-Id: I4302d0d767a1bf50fd34a78e9aa0ad6d6b0c7a22
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/dialogs-test.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx index 1bbc30056fea..148467272f13 100644 --- a/sd/qa/unit/dialogs-test.cxx +++ b/sd/qa/unit/dialogs-test.cxx @@ -93,7 +93,7 @@ private: /// dialog creation for known dialogs by ID. Has to be implemented for /// each registered known dialog - virtual VclAbstractDialog* createDialogByID(sal_uInt32 nID) override; + virtual VclPtr<VclAbstractDialog> createDialogByID(sal_uInt32 nID) override; public: SdDialogsTest(); @@ -255,9 +255,9 @@ void SdDialogsTest::registerKnownDialogsByID(mapType& rKnownDialogs) rKnownDialogs["modules/simpress/ui/headerfooterdialog.ui"] = 22; } -VclAbstractDialog* SdDialogsTest::createDialogByID(sal_uInt32 nID) +VclPtr<VclAbstractDialog> SdDialogsTest::createDialogByID(sal_uInt32 nID) { - VclAbstractDialog* pRetval = nullptr; + VclPtr<VclAbstractDialog> pRetval; if (getSdAbstractDialogFactory()) { |