diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-03-08 17:37:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-03-08 20:54:14 +0100 |
commit | 19caafc967441982ba47a1016dbb1b8bf70d675e (patch) | |
tree | 2e7dcf4d84d0cf13456e3748a915a680c11df674 /fpicker | |
parent | 11380b0a02164e1d4e2b94fb6c2f6b2119367ff0 (diff) |
loplugin:makeshared (clang-cl)
Change-Id: I902c4438adb89970db749ca06a13bfc484925851
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112177
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/VistaFilePickerImpl.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fpicker/source/win32/VistaFilePickerImpl.cxx b/fpicker/source/win32/VistaFilePickerImpl.cxx index b8642dd1f010..dbbe72e18ee4 100644 --- a/fpicker/source/win32/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/VistaFilePickerImpl.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <memory> + #include "VistaFilePickerImpl.hxx" #include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp> @@ -494,7 +498,7 @@ template <class TDialogImplClass> void VistaFilePickerImpl::impl_sta_CreateDialo { // SYNCHRONIZED-> osl::ClearableMutexGuard aLock(m_aMutex); - m_pDialog.reset(new TDialogImplClass); + m_pDialog = std::make_shared<TDialogImplClass>(); } |