diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-06-12 15:06:25 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-06-12 15:06:25 +0200 |
commit | 152153a06766bed18a96aec78f357e529c0f68fb (patch) | |
tree | e01520f71fd78256ec6264656d7d9b625363fbf0 /cpp/src | |
parent | Windows SSL build fix (diff) | |
download | ice-152153a06766bed18a96aec78f357e529c0f68fb.tar.bz2 ice-152153a06766bed18a96aec78f357e529c0f68fb.tar.xz ice-152153a06766bed18a96aec78f357e529c0f68fb.zip |
Fixed VS2010 compilation error in GC code
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/GCObject.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/Ice/GCObject.cpp b/cpp/src/Ice/GCObject.cpp index ccdc14364a7..ef92c17bd46 100644 --- a/cpp/src/Ice/GCObject.cpp +++ b/cpp/src/Ice/GCObject.cpp @@ -171,8 +171,10 @@ class MarkCollectable : public GCVisitor public: - VisitNeighbors(MarkCollectable* visitor) : _visitor(visitor) + void + setVisitor(MarkCollectable* visitor) { + _visitor = visitor; } virtual bool @@ -186,8 +188,9 @@ class MarkCollectable : public GCVisitor public: - MarkCollectable() : _counter(0), _neighborsVisitor(this) + MarkCollectable() : _counter(0) { + _neighborsVisitor.setVisitor(this); } virtual bool |