[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 28 14:09:59 UTC 2020
vcl/osx/DropTarget.cxx | 2 +-
vcl/osx/clipboard.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 72855b51e0c241b5a514858afcbb9c4df7c03188
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jan 28 13:09:34 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jan 28 15:09:17 2020 +0100
loplugin:makeshared (macOS)
Change-Id: Ia5e342e763700b02f11e44cc04c10424fb14c55e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87603
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx
index ebaa0a97fb40..26398cb903a3 100644
--- a/vcl/osx/DropTarget.cxx
+++ b/vcl/osx/DropTarget.cxx
@@ -124,7 +124,7 @@ DropTarget::DropTarget() :
mSelectedDropAction(DNDConstants::ACTION_NONE),
mDefaultActions(DNDConstants::ACTION_COPY_OR_MOVE | DNDConstants::ACTION_LINK | DNDConstants::ACTION_DEFAULT)
{
- mDataFlavorMapper = DataFlavorMapperPtr_t(new DataFlavorMapper());
+ mDataFlavorMapper = std::make_shared<DataFlavorMapper>();
}
DropTarget::~DropTarget()
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 58559e174272..c2adb5bfcd3c 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -77,7 +77,7 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
mrXMimeCntFactory = datatransfer::MimeContentTypeFactory::create(xContext);
- mpDataFlavorMapper = DataFlavorMapperPtr_t(new DataFlavorMapper());
+ mpDataFlavorMapper = std::make_shared<DataFlavorMapper>();
if (pasteboard != nullptr)
{
More information about the Libreoffice-commits
mailing list