fix potential gcc warnings

master
Daniel Kolesa 2015-06-26 00:14:18 +01:00
parent 3a1ea741f1
commit 9a6caffefe
1 changed files with 4 additions and 4 deletions

View File

@ -258,7 +258,7 @@ protected:
}
T &access_or_insert(const K &key) {
octa::Size h;
octa::Size h = 0;
T *v = access_base(key, h);
if (v) return *v;
rehash_ahead(1);
@ -266,7 +266,7 @@ protected:
}
T &access_or_insert(K &&key) {
octa::Size h;
octa::Size h = 0;
T *v = access_base(key, h);
if (v) return *v;
rehash_ahead(1);
@ -540,14 +540,14 @@ public:
}
Range find(const K &key) {
octa::Size h;
octa::Size h = 0;
Chain *c;
if (find(key, h, c)) return each_from(c, h);
return Range();
}
ConstRange find(const K &key) const {
octa::Size h;
octa::Size h = 0;
Chain *c;
if (find(key, h, c)) return each_from(c, h);
return ConstRange();