diff options
author | Matthew Nicholls <matthew.nicholls95@hotmail.co.uk> | 2015-09-09 16:08:51 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-09-11 12:48:12 +0000 |
commit | e594d13a53cac73814b86cf12891c6955961db55 (patch) | |
tree | 2545052b903267f395efe037e8bb7b2bdd12479e /fpicker/source/office/iodlgimp.cxx | |
parent | 2062d5d6f472ffa22ab4a769f4cb992f3a91894c (diff) |
tdf#93240: replace boost::ptr_deque with std::deque<std::unique_ptr>
Change-Id: Iba77946a00c6c43c4377b2bae62467581cfed19f
Reviewed-on: https://gerrit.libreoffice.org/18468
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'fpicker/source/office/iodlgimp.cxx')
-rw-r--r-- | fpicker/source/office/iodlgimp.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index 55c7f2789f72..a03278299529 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -212,7 +212,6 @@ Size SvtUpButton_Impl::GetOptimalSize() const SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) : _pCurFilter ( NULL ), - _pFilter ( new SvtFileDialogFilterList_Impl() ), _pUserFilter ( NULL ), _pFtFileName ( NULL ), _pEdFileName ( NULL ), @@ -253,7 +252,6 @@ SvtExpFileDlg_Impl::~SvtExpFileDlg_Impl() { _pBtnUp.disposeAndClear(); delete _pUserFilter; - delete _pFilter; _pPlaces.disposeAndClear(); } @@ -316,15 +314,15 @@ void SvtExpFileDlg_Impl::InitFilterList( ) ClearFilterList( ); // reinit it - sal_uInt16 nPos = _pFilter->size(); + sal_uInt16 nPos = m_aFilter.size(); // search for the first entry which is no group separator - while ( nPos-- && (*_pFilter)[ nPos ].isGroupSeparator() ) + while ( nPos-- && m_aFilter[ nPos ]->isGroupSeparator() ) ; // add all following entries while ( (sal_Int16)nPos >= 0 ) - InsertFilterListEntry( &(*_pFilter)[ nPos-- ] ); + InsertFilterListEntry( m_aFilter[ nPos-- ].get() ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |