diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:22:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 19:31:14 +0100 |
commit | 3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (patch) | |
tree | bd912f9c91d8f96969377168fab9e5c5cc59a895 /writerperfect | |
parent | 7589e8413411aa4e0bf437ec0a7080c577a9c1d9 (diff) |
loplugin:makeshared in svgio..writerperfect
Change-Id: I0f8de0f78c7a8fb78d47ee5dfed09019b4eb5288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87357
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/qa/unit/WPXSvStreamTest.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/impress/KeynoteImportFilter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/qa/unit/WPXSvStreamTest.cxx b/writerperfect/qa/unit/WPXSvStreamTest.cxx index cbd0899b54bd..87ad21f84cde 100644 --- a/writerperfect/qa/unit/WPXSvStreamTest.cxx +++ b/writerperfect/qa/unit/WPXSvStreamTest.cxx @@ -78,7 +78,7 @@ shared_ptr<RVNGInputStream> lcl_createStream() shared_ptr<RVNGInputStream> pInputStream; if (xInputStream.is()) - pInputStream.reset(new WPXSvInputStream(xInputStream)); + pInputStream = std::make_shared<WPXSvInputStream>(xInputStream); return pInputStream; } diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index d83f8acea431..0ffccf9f38d5 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -129,7 +129,7 @@ KeynoteImportFilter::detect(css::uno::Sequence<css::beans::PropertyValue>& Descr { if (aContent.isFolder()) { - input.reset(new writerperfect::DirectoryStream(xContent)); + input = std::make_shared<writerperfect::DirectoryStream>(xContent); bIsPackage = true; } } |