summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--formula/qa/unit/formula-dialogs-test.cxx4
-rw-r--r--fpicker/qa/unit/fpicker-dialogs-test.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/formula/qa/unit/formula-dialogs-test.cxx b/formula/qa/unit/formula-dialogs-test.cxx
index 97f3c90a49eb..0e57336f672c 100644
--- a/formula/qa/unit/formula-dialogs-test.cxx
+++ b/formula/qa/unit/formula-dialogs-test.cxx
@@ -26,7 +26,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:
FormulaDialogsTest();
@@ -60,7 +60,7 @@ void FormulaDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
// fill map of known dilogs
}
-VclAbstractDialog* FormulaDialogsTest::createDialogByID(sal_uInt32 /*nID*/)
+VclPtr<VclAbstractDialog> FormulaDialogsTest::createDialogByID(sal_uInt32 /*nID*/)
{
return nullptr;
}
diff --git a/fpicker/qa/unit/fpicker-dialogs-test.cxx b/fpicker/qa/unit/fpicker-dialogs-test.cxx
index 622138d496c3..5bfcb2b432a5 100644
--- a/fpicker/qa/unit/fpicker-dialogs-test.cxx
+++ b/fpicker/qa/unit/fpicker-dialogs-test.cxx
@@ -26,7 +26,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:
FpickerDialogsTest();
@@ -60,7 +60,7 @@ void FpickerDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
// fill map of known dilogs
}
-VclAbstractDialog* FpickerDialogsTest::createDialogByID(sal_uInt32 /*nID*/)
+VclPtr<VclAbstractDialog> FpickerDialogsTest::createDialogByID(sal_uInt32 /*nID*/)
{
return nullptr;
}