summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Cache.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-04-19 21:44:50 +0000
committerBernard Normier <bernard@zeroc.com>2004-04-19 21:44:50 +0000
commitc4fce53b0a51b4b6df57758a01f213129716a94c (patch)
tree984bbd3e845efe7c60261d940e12e3e542a99f4f /cpp/include/IceUtil/Cache.h
parentAdded keep, keepFacet, remove and removeFacet to Evictor; bug fixes (diff)
downloadice-c4fce53b0a51b4b6df57758a01f213129716a94c.tar.bz2
ice-c4fce53b0a51b4b6df57758a01f213129716a94c.tar.xz
ice-c4fce53b0a51b4b6df57758a01f213129716a94c.zip
Windows build fixes
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)
{