summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qcache3q_p.h
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2012-04-17 16:56:54 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-19 10:10:01 +0200
commit75b9e531b922ff123fd85c6df238cb199e648e15 (patch)
treec266e0ae94c36ff6b909b05ee889efd139aca602 /src/location/maps/qcache3q_p.h
parentca5336e974e2eeac15b39da2e3daf98485c50980 (diff)
Coverity and compiler warning fixes
Change-Id: Iae536630edbfbda2c0e8c67c48477d5867d25f07 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/maps/qcache3q_p.h')
-rw-r--r--src/location/maps/qcache3q_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/location/maps/qcache3q_p.h b/src/location/maps/qcache3q_p.h
index 84ab2bb9..b744583c 100644
--- a/src/location/maps/qcache3q_p.h
+++ b/src/location/maps/qcache3q_p.h
@@ -177,6 +177,11 @@ private:
void rebalance();
void unlink(Node *n);
void link_front(Node *n, Queue *q);
+
+private:
+ // make these private so they can't be used
+ inline QCache3Q(const QCache3Q<Key,T,EvPolicy> &) {}
+ inline QCache3Q<Key,T,EvPolicy> &operator=(const QCache3Q<Key,T,EvPolicy> &) {}
};
template <class Key, class T, class EvPolicy>
@@ -233,7 +238,7 @@ bool QCache3Q<Key,T,EvPolicy>::insert(const Key &key, QSharedPointer<T> object,
n->q->cost += cost;
if (n->q == q1_evicted_) {
- if (n->pop > promote_) {
+ if (n->pop > (uint)promote_) {
unlink(n);
link_front(n, q2_);
rebalance();