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

Change-Id: Id53ee54dda5454669affd5ca5324a2d7c5387063
This commit is contained in:
Caolán McNamara
2015-09-04 10:25:28 +01:00
parent d64105fd3a
commit 01e6e93eed
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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: */