Kaydet (Commit) 01e6e93e authored tarafından Caolán McNamara's avatar Caolán McNamara

vcl: replace boost::ptr_deque with std::deque<std::unique_ptr>

Change-Id: Id53ee54dda5454669affd5ca5324a2d7c5387063
üst d64105fd
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment