summaryrefslogtreecommitdiff
path: root/include/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 09:09:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-20 06:56:32 +0000
commit84defbc556c17aa58851fd14f8af0deaa3cc6e05 (patch)
tree8eb1b3dceea8ca8b6d2e62b3c20c8d121deb8a9e /include/ucbhelper
parent3bb8bdb93f1546f64ff3f183d6162c41a03856bf (diff)
new loplugin: useuniqueptr: ucb..ucbhelper
Change-Id: Ib19ca3225b96d1bfec8a43bb762e16597f33b690 Reviewed-on: https://gerrit.libreoffice.org/33297 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/ucbhelper')
-rw-r--r--include/ucbhelper/contentinfo.hxx4
-rw-r--r--include/ucbhelper/propertyvalueset.hxx3
-rw-r--r--include/ucbhelper/resultsethelper.hxx2
3 files changed, 5 insertions, 4 deletions
diff --git a/include/ucbhelper/contentinfo.hxx b/include/ucbhelper/contentinfo.hxx
index ee1f9ec43420..171479ca0e1f 100644
--- a/include/ucbhelper/contentinfo.hxx
+++ b/include/ucbhelper/contentinfo.hxx
@@ -50,7 +50,7 @@ class PropertySetInfo :
{
css::uno::Reference< css::ucb::XCommandEnvironment >
m_xEnv;
- css::uno::Sequence< css::beans::Property >*
+ std::unique_ptr<css::uno::Sequence< css::beans::Property >>
m_pProps;
osl::Mutex m_aMutex;
ContentImplHelper* m_pContent;
@@ -113,7 +113,7 @@ class CommandProcessorInfo :
{
css::uno::Reference< css::ucb::XCommandEnvironment >
m_xEnv;
- css::uno::Sequence< css::ucb::CommandInfo >*
+ std::unique_ptr<css::uno::Sequence< css::ucb::CommandInfo >>
m_pCommands;
osl::Mutex m_aMutex;
ContentImplHelper* m_pContent;
diff --git a/include/ucbhelper/propertyvalueset.hxx b/include/ucbhelper/propertyvalueset.hxx
index c0c8c34ac698..e475243be8a4 100644
--- a/include/ucbhelper/propertyvalueset.hxx
+++ b/include/ucbhelper/propertyvalueset.hxx
@@ -29,6 +29,7 @@
#include <osl/mutex.hxx>
#include <ucbhelper/macros.hxx>
#include <ucbhelper/ucbhelperdllapi.h>
+#include <memory>
namespace com { namespace sun { namespace star { namespace script {
class XTypeConverter;
@@ -60,7 +61,7 @@ class UCBHELPER_DLLPUBLIC PropertyValueSet :
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter;
osl::Mutex m_aMutex;
- PropertyValues* m_pValues;
+ std::unique_ptr<PropertyValues> m_pValues;
bool m_bWasNull;
bool m_bTriedToGetTypeConverter;
diff --git a/include/ucbhelper/resultsethelper.hxx b/include/ucbhelper/resultsethelper.hxx
index e35466fce85c..078b1cb21c75 100644
--- a/include/ucbhelper/resultsethelper.hxx
+++ b/include/ucbhelper/resultsethelper.hxx
@@ -56,7 +56,7 @@ class UCBHELPER_DLLPUBLIC ResultSetImplHelper :
public css::lang::XServiceInfo,
public css::ucb::XDynamicResultSet
{
- cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
+ std::unique_ptr<cppu::OInterfaceContainerHelper> m_pDisposeEventListeners;
bool m_bStatic;
bool m_bInitDone;