diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-03 08:58:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-03 08:58:14 +0200 |
commit | 69a3080ae9d1439bd325f55d6c799952b02536e0 (patch) | |
tree | 851239df6adfbd30cca337772b427ae1b7692dca | |
parent | 2d2971090b31776719e83d811c17a01aaf5222c7 (diff) |
loplugin:refcounting (RequestFilterSelect_Impl derives from XInterface)
Change-Id: Iabf9b94626b599b4fe799523b3523e18df5203c5
-rw-r--r-- | framework/source/fwe/dispatch/interaction.cxx | 9 | ||||
-rw-r--r-- | include/framework/interaction.hxx | 4 |
2 files changed, 4 insertions, 9 deletions
diff --git a/framework/source/fwe/dispatch/interaction.cxx b/framework/source/fwe/dispatch/interaction.cxx index cf4f27c8b21c..a9b36bb4be67 100644 --- a/framework/source/fwe/dispatch/interaction.cxx +++ b/framework/source/fwe/dispatch/interaction.cxx @@ -157,14 +157,9 @@ css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > RequestFilterSelect::RequestFilterSelect( const OUString& sURL ) : pImpl( new RequestFilterSelect_Impl( sURL )) -{ - pImpl->acquire(); -} +{} -RequestFilterSelect::~RequestFilterSelect() -{ - pImpl->release(); -} +RequestFilterSelect::~RequestFilterSelect() {} // return abort state of interaction // If it is true, return value of method "getFilter()" will be unspecified then! diff --git a/include/framework/interaction.hxx b/include/framework/interaction.hxx index f7793d3939ac..6858a044df81 100644 --- a/include/framework/interaction.hxx +++ b/include/framework/interaction.hxx @@ -30,11 +30,11 @@ #include <com/sun/star/document/NoSuchFilterRequest.hpp> #include <com/sun/star/uno/RuntimeException.hpp> +#include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <framework/fwedllapi.h> -#include <memory> namespace framework{ @@ -61,7 +61,7 @@ namespace framework{ class RequestFilterSelect_Impl; class FWE_DLLPUBLIC RequestFilterSelect { - std::unique_ptr<RequestFilterSelect_Impl> pImpl; + rtl::Reference<RequestFilterSelect_Impl> pImpl; public: RequestFilterSelect( const OUString& sURL ); |