summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-24 14:40:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-24 16:09:56 +0200
commitb358bb95c04772a6ff00d7fcbb6fbef9d3dca13c (patch)
treee2af8d9d1b9b9aa21bd7a9a29f448b929f98a259 /sc/source/ui/miscdlgs
parent3dfcc485b19f918f434f34ee0157f5dca96bad43 (diff)
cannot create a shared_ptr from an existing object
so pass in the shared_ptr we already have (and enforce that we pass in the right one) Change-Id: Ic481b5ec17c34ed9cba50586dedb6184505dee24 Reviewed-on: https://gerrit.libreoffice.org/72908 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/ui/miscdlgs')
-rw-r--r--sc/source/ui/miscdlgs/solvrdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/miscdlgs/solvrdlg.cxx b/sc/source/ui/miscdlgs/solvrdlg.cxx
index 551e781cbf8a..25a36c30941d 100644
--- a/sc/source/ui/miscdlgs/solvrdlg.cxx
+++ b/sc/source/ui/miscdlgs/solvrdlg.cxx
@@ -38,7 +38,7 @@ namespace
std::shared_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pParent,
VclMessageType::Warning, VclButtonsType::Ok,
rString));
- xBox->runAsync(func);
+ xBox->runAsync(xBox, func);
}
}