summaryrefslogtreecommitdiff
path: root/binaryurp/source/cache.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-15 20:54:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-16 12:54:45 +0000
commit01a8bda416d1598f5486f95b6a57d61ff09873ed (patch)
treec37934d13308426d22599f63bf8666305a6b1f80 /binaryurp/source/cache.hxx
parenta1ceacc17e3f30d5e9c06b3218ad8ec26ca2f1b9 (diff)
boost::noncopyable->'= delete'
Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
Diffstat (limited to 'binaryurp/source/cache.hxx')
-rw-r--r--binaryurp/source/cache.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/binaryurp/source/cache.hxx b/binaryurp/source/cache.hxx
index 7cbb30392a97..97e246ec2655 100644
--- a/binaryurp/source/cache.hxx
+++ b/binaryurp/source/cache.hxx
@@ -27,7 +27,6 @@
#include <map>
#include <list>
-#include "boost/noncopyable.hpp"
#include "sal/types.h"
namespace binaryurp {
@@ -38,7 +37,7 @@ enum { size = 256, ignore = 0xFFFF };
}
-template< typename T > class Cache : private boost::noncopyable {
+template< typename T > class Cache {
public:
typedef sal_uInt16 IdxType;
@@ -81,6 +80,9 @@ public:
}
private:
+ Cache(const Cache&) SAL_DELETED_FUNCTION;
+ Cache& operator=(const Cache&) SAL_DELETED_FUNCTION;
+
typedef std::list<T> LruList; // last recently used list
typedef typename LruList::iterator LruListIt;
struct CmpT{ bool operator()( const LruListIt& rA, const LruListIt& rB) const { return (*rA<*rB);}};