diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-02 13:11:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-04 08:56:28 +0200 |
commit | 49380068794fa6776cfeedf3ffeaa3677bc63f21 (patch) | |
tree | 45177688d02598302885417a709ebde95c606788 /sfx2/source/inc | |
parent | 36ca18f70ee0bf9541bc0105c85f0a68f088c92b (diff) |
loplugin:useuniqueptr in SfxAppData_Impl
Change-Id: I861dd9459e4c986557198b918dc099a0bb119d7d
Reviewed-on: https://gerrit.libreoffice.org/53759
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/inc')
-rw-r--r-- | sfx2/source/inc/appdata.hxx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx index ac5815731d82..8dffcb348d01 100644 --- a/sfx2/source/inc/appdata.hxx +++ b/sfx2/source/inc/appdata.hxx @@ -24,6 +24,7 @@ #include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <svl/lstner.hxx> +#include <svl/svdde.hxx> #include <svtools/ehdl.hxx> #include <vcl/timer.hxx> #include <sfx2/app.hxx> @@ -70,10 +71,10 @@ public: OUString aLastDir; // for IO dialog // DDE stuff - DdeService* pDdeService; - SfxDdeDocTopics_Impl* pDocTopics; - SfxDdeTriggerTopic_Impl* pTriggerTopic; - DdeService* pDdeService2; + std::unique_ptr<DdeService> pDdeService; + std::unique_ptr<SfxDdeDocTopics_Impl> pDocTopics; + std::unique_ptr<SfxDdeTriggerTopic_Impl> pTriggerTopic; + std::unique_ptr<DdeService> pDdeService2; // single instance classes SfxChildWinFactArr_Impl* pFactArr; @@ -133,6 +134,18 @@ public: void OnApplicationBasicManagerCreated( BasicManager& _rManager ); }; +class SfxDdeTriggerTopic_Impl : public DdeTopic +{ +#if defined(_WIN32) +public: + SfxDdeTriggerTopic_Impl() + : DdeTopic( "TRIGGER" ) + {} + + virtual bool Execute( const OUString* ) override { return true; } +#endif +}; + #endif // INCLUDED_SFX2_SOURCE_INC_APPDATA_HXX |