diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-24 20:46:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-26 09:48:13 +0000 |
commit | cc5ceadf55b6f20575e819f6c5be6720093811ed (patch) | |
tree | e08791e0b15b77a6874d139006e33dc46bcf3126 /sc/source/filter/inc/condformatbuffer.hxx | |
parent | 6809783a988ff2271850bb3b5f8843f03fb658c9 (diff) |
coverity#735393 Resource leak in object
Change-Id: Ib39befba388568004a4cda57a1b161ba2a80c822
Diffstat (limited to 'sc/source/filter/inc/condformatbuffer.hxx')
-rw-r--r-- | sc/source/filter/inc/condformatbuffer.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx index b3dc63801b20..47d90d487287 100644 --- a/sc/source/filter/inc/condformatbuffer.hxx +++ b/sc/source/filter/inc/condformatbuffer.hxx @@ -113,10 +113,10 @@ public: void SetData( ScDataBarFormat* pFormat, ScDocument* pDoc, const ScAddress& rAddr ); - ScDataBarFormatData* getDataBarFormatData() { return mpFormat; } + ScDataBarFormatData* getDataBarFormatData() { return mxFormat.get(); } private: - ScDataBarFormatData* mpFormat; + std::unique_ptr<ScDataBarFormatData> mxFormat; boost::scoped_ptr<ColorScaleRuleModelEntry> mpUpperLimit; boost::scoped_ptr<ColorScaleRuleModelEntry> mpLowerLimit; |