svx: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: Ib4ebadcdecc0f673c585c820b4aa4a3e1e123f0c
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
#include <vcl/layout.hxx>
|
||||
#include <vcl/waitobj.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <o3tl/make_unique.hxx>
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
@@ -4036,8 +4037,7 @@ ControlConversionMenuController::ControlConversionMenuController( sal_uInt16 _nI
|
||||
for (sal_Int16 i=0; i<m_pConversionMenu->GetItemCount(); ++i)
|
||||
{
|
||||
_rBindings.Invalidate(m_pConversionMenu->GetItemId(i));
|
||||
SfxStatusForwarder* pForwarder = new SfxStatusForwarder(m_pConversionMenu->GetItemId(i), *this);
|
||||
m_aStatusForwarders.push_back(pForwarder);
|
||||
m_aStatusForwarders.push_back(o3tl::make_unique<SfxStatusForwarder>(m_pConversionMenu->GetItemId(i), *this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@
|
||||
#include <queue>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <boost/ptr_container/ptr_vector.hpp>
|
||||
#include <memory>
|
||||
|
||||
typedef std::vector< css::uno::Reference< css::form::XForm > > FmFormArray;
|
||||
|
||||
@@ -571,7 +571,7 @@ public:
|
||||
class SVX_DLLPUBLIC ControlConversionMenuController : public SfxMenuControl
|
||||
{
|
||||
protected:
|
||||
boost::ptr_vector<SfxStatusForwarder> m_aStatusForwarders;
|
||||
std::vector<std::unique_ptr<SfxStatusForwarder> > m_aStatusForwarders;
|
||||
Menu* m_pMainMenu;
|
||||
PopupMenu* m_pConversionMenu;
|
||||
|
||||
|
Reference in New Issue
Block a user