vcl: replace boost::ptr_deque with std::deque<std::unique_ptr>
Change-Id: Id53ee54dda5454669affd5ca5324a2d7c5387063
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
#define INCLUDED_VCL_OUTDEVSTATESTACK_HXX
|
||||
|
||||
#include <vcl/outdevstate.hxx>
|
||||
|
||||
#include <boost/ptr_container/ptr_deque.hpp>
|
||||
#include <memory>
|
||||
#include <deque>
|
||||
|
||||
class OutDevStateStack
|
||||
{
|
||||
typedef boost::ptr_deque<OutDevState> DataType;
|
||||
typedef std::deque<std::unique_ptr<OutDevState>> DataType;
|
||||
DataType maData;
|
||||
public:
|
||||
bool empty() const;
|
||||
|
@@ -21,7 +21,7 @@ size_t OutDevStateStack::size() const
|
||||
|
||||
void OutDevStateStack::push_back( OutDevState* p )
|
||||
{
|
||||
maData.push_back(p);
|
||||
maData.push_back(std::unique_ptr<OutDevState>(p));
|
||||
}
|
||||
|
||||
void OutDevStateStack::pop_back()
|
||||
@@ -31,7 +31,7 @@ void OutDevStateStack::pop_back()
|
||||
|
||||
OutDevState& OutDevStateStack::back()
|
||||
{
|
||||
return maData.back();
|
||||
return *maData.back();
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user