diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 18:03:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 18:03:18 +0200 |
commit | cbdd3c32703fd21b6911b5a6fc5803faeed9befb (patch) | |
tree | 34d88820a086096e8f36c00c0c68dad1269ffc41 /include | |
parent | 423dacde87cbb3cba466c9701ed10dadc2b8b4e0 (diff) |
Use unique_ptr for SfxPrinter::pOptions
Change-Id: I46be77225c0323f8b7f293de9c022f0de6f425b7
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/printer.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sfx2/printer.hxx b/include/sfx2/printer.hxx index a2c40249c793..9704a73562db 100644 --- a/include/sfx2/printer.hxx +++ b/include/sfx2/printer.hxx @@ -35,17 +35,17 @@ struct SfxPrinter_Impl; class SFX2_DLLPUBLIC SfxPrinter : public Printer { private: - SfxItemSet* pOptions; + std::unique_ptr<SfxItemSet> pOptions; std::unique_ptr< SfxPrinter_Impl > pImpl; bool bKnown; SAL_DLLPRIVATE void operator =(SfxPrinter &) = delete; public: - SfxPrinter( SfxItemSet *pTheOptions ); - SfxPrinter( SfxItemSet *pTheOptions, + SfxPrinter( std::unique_ptr<SfxItemSet> &&pTheOptions ); + SfxPrinter( std::unique_ptr<SfxItemSet> &&pTheOptions, const OUString &rPrinterName ); - SfxPrinter( SfxItemSet *pTheOptions, + SfxPrinter( std::unique_ptr<SfxItemSet> &&pTheOptions, const JobSetup &rTheOrigJobSetup ); SfxPrinter( const SfxPrinter &rPrinter ); virtual ~SfxPrinter() override; @@ -53,7 +53,7 @@ public: VclPtr<SfxPrinter> Clone() const; - static VclPtr<SfxPrinter> Create( SvStream &rStream, SfxItemSet *pOptions ); + static VclPtr<SfxPrinter> Create( SvStream &rStream, std::unique_ptr<SfxItemSet> &&pOptions ); void Store( SvStream &rStream ) const; const SfxItemSet& GetOptions() const { return *pOptions; } |