summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/Cache.h')
-rw-r--r--cpp/include/IceUtil/Cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Cache.h b/cpp/include/IceUtil/Cache.h
index ff2f4cbbe72..9f0d3b917ee 100644
--- a/cpp/include/IceUtil/Cache.h
+++ b/cpp/include/IceUtil/Cache.h
@@ -50,7 +50,7 @@ public:
struct CacheValue
{
- CacheValue(const Handle<Value>& o = 0) :
+ CacheValue(const Handle<Value>& o) :
obj(o),
latch(0)
{
@@ -199,7 +199,7 @@ Cache<Key, Value>::pinImpl(const Key& key, const Handle<Value>& newObj)
#else
std::pair<typename CacheMap::iterator, bool> ir =
#endif
- _map.insert(CacheMap::value_type(key, CacheValue()));
+ _map.insert(CacheMap::value_type(key, CacheValue(0)));
if(ir.second == false)
{