summaryrefslogtreecommitdiff
path: root/package/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-01-10 22:09:49 -0500
committerKohei Yoshida <libreoffice@kohei.us>2017-01-11 14:48:32 +0000
commit52b8739f5b2108c3c1ba116ed3ec79847add5396 (patch)
tree62bcfc1bfa14ff606792d3efbfe2ef162ef7649b /package/inc
parenta544fd5fa233135f150b44c843a14be461952ecd (diff)
Let's return std::unique_ptr<...> directly.
It's only used at one call site, which already uses std::unique_ptr. Change-Id: I5ff528ebc560bb6eb8783d20002cea40a451761e Reviewed-on: https://gerrit.libreoffice.org/32946 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ZipFile.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index bfc056f191ff..bac0168c3afc 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -33,6 +33,8 @@
#include <mutexholder.hxx>
+#include <memory>
+
namespace com { namespace sun { namespace star {
namespace uno { class XComponentContext; }
namespace ucb { class XProgressHandler; }
@@ -159,7 +161,7 @@ public:
const OUString& aMediaType,
const rtl::Reference<SotMutexHolder>& aMutexHolder );
- ZipEnumeration* entries();
+ std::unique_ptr<ZipEnumeration> entries();
};
#endif