From 5fc51f8d254da21d5ed2d3fb9293020bbfbfab92 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 17 Nov 2015 09:52:47 +0200 Subject: use unique_ptr for pImpl in ucbhelper/ Change-Id: Ibae75fc4d843bd38179d4c7afc6ddb532835c7a6 --- include/ucbhelper/commandenvironment.hxx | 3 ++- include/ucbhelper/contenthelper.hxx | 3 ++- include/ucbhelper/contentidentifier.hxx | 3 ++- include/ucbhelper/interactionrequest.hxx | 5 +++-- include/ucbhelper/providerhelper.hxx | 3 ++- include/ucbhelper/resultset.hxx | 3 ++- include/ucbhelper/resultsetmetadata.hxx | 3 ++- 7 files changed, 15 insertions(+), 8 deletions(-) (limited to 'include/ucbhelper') diff --git a/include/ucbhelper/commandenvironment.hxx b/include/ucbhelper/commandenvironment.hxx index 11bc5e3e4a89..5bd8ee6451bb 100644 --- a/include/ucbhelper/commandenvironment.hxx +++ b/include/ucbhelper/commandenvironment.hxx @@ -23,6 +23,7 @@ #include #include #include +#include namespace ucbhelper { @@ -36,7 +37,7 @@ struct CommandEnvironment_Impl; class UCBHELPER_DLLPUBLIC CommandEnvironment : public cppu::WeakImplHelper1< css::ucb::XCommandEnvironment > { - CommandEnvironment_Impl* m_pImpl; + std::unique_ptr m_pImpl; private: CommandEnvironment( const CommandEnvironment& ) = delete; diff --git a/include/ucbhelper/contenthelper.hxx b/include/ucbhelper/contenthelper.hxx index 20b15c71f8aa..91cf9934ae94 100644 --- a/include/ucbhelper/contenthelper.hxx +++ b/include/ucbhelper/contenthelper.hxx @@ -38,6 +38,7 @@ #include #include #include +#include namespace com { namespace sun { namespace star { namespace ucb { struct CommandInfo; @@ -96,7 +97,7 @@ class UCBHELPER_DLLPUBLIC ContentImplHelper : friend class PropertySetInfo; friend class CommandProcessorInfo; - ucbhelper_impl::ContentImplHelper_Impl* m_pImpl; + std::unique_ptr m_pImpl; protected: osl::Mutex m_aMutex; diff --git a/include/ucbhelper/contentidentifier.hxx b/include/ucbhelper/contentidentifier.hxx index 29ff8676db7e..702febc060ee 100644 --- a/include/ucbhelper/contentidentifier.hxx +++ b/include/ucbhelper/contentidentifier.hxx @@ -24,6 +24,7 @@ #include #include #include +#include namespace ucbhelper @@ -74,7 +75,7 @@ public: throw( css::uno::RuntimeException, std::exception ) override; private: - ContentIdentifier_Impl* m_pImpl; + std::unique_ptr m_pImpl; }; } /* namespace ucbhelper */ diff --git a/include/ucbhelper/interactionrequest.hxx b/include/ucbhelper/interactionrequest.hxx index 3361ccb04274..03122c18742f 100644 --- a/include/ucbhelper/interactionrequest.hxx +++ b/include/ucbhelper/interactionrequest.hxx @@ -32,6 +32,7 @@ #include #include #include +#include namespace ucbhelper { @@ -63,7 +64,7 @@ class UCBHELPER_DLLPUBLIC InteractionRequest : public cppu::OWeakObject, public css::lang::XTypeProvider, public css::task::XInteractionRequest { - InteractionRequest_Impl * m_pImpl; + std::unique_ptr m_pImpl; protected: void setRequest( const css::uno::Any & rRequest ); @@ -151,7 +152,7 @@ struct InteractionContinuation_Impl; */ class UCBHELPER_DLLPUBLIC InteractionContinuation : public cppu::OWeakObject { - InteractionContinuation_Impl * m_pImpl; + std::unique_ptr m_pImpl; protected: /** diff --git a/include/ucbhelper/providerhelper.hxx b/include/ucbhelper/providerhelper.hxx index 91c76f140560..0941e085f530 100644 --- a/include/ucbhelper/providerhelper.hxx +++ b/include/ucbhelper/providerhelper.hxx @@ -21,6 +21,7 @@ #define INCLUDED_UCBHELPER_PROVIDERHELPER_HXX #include +#include #include #include #include @@ -70,7 +71,7 @@ class UCBHELPER_DLLPUBLIC ContentProviderImplHelper : public cppu::OWeakObject, { friend class ContentImplHelper; - ucbhelper_impl::ContentProviderImplHelper_Impl* m_pImpl; + std::unique_ptr m_pImpl; protected: osl::Mutex m_aMutex; diff --git a/include/ucbhelper/resultset.hxx b/include/ucbhelper/resultset.hxx index 2acd65d1c24b..63dec4212149 100644 --- a/include/ucbhelper/resultset.hxx +++ b/include/ucbhelper/resultset.hxx @@ -37,6 +37,7 @@ #include #include #include +#include namespace ucbhelper { @@ -70,7 +71,7 @@ class UCBHELPER_DLLPUBLIC ResultSet : public css::sdbc::XCloseable, public css::beans::XPropertySet { - ResultSet_Impl* m_pImpl; + std::unique_ptr m_pImpl; public: /** diff --git a/include/ucbhelper/resultsetmetadata.hxx b/include/ucbhelper/resultsetmetadata.hxx index 730bdf1a5ab9..cda709eb045e 100644 --- a/include/ucbhelper/resultsetmetadata.hxx +++ b/include/ucbhelper/resultsetmetadata.hxx @@ -21,6 +21,7 @@ #define INCLUDED_UCBHELPER_RESULTSETMETADATA_HXX #include +#include #include #include #include @@ -141,7 +142,7 @@ class UCBHELPER_DLLPUBLIC ResultSetMetaData : public css::sdbc::XResultSetMetaData { private: - ucbhelper_impl::ResultSetMetaData_Impl* m_pImpl; + std::unique_ptr m_pImpl; protected: css::uno::Reference< css::uno::XComponentContext > m_xContext; -- cgit