summaryrefslogtreecommitdiff
path: root/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp')
-rw-r--r--cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
index 52d48bf7f23..472500d2761 100644
--- a/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
+++ b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
@@ -17,9 +17,7 @@ using namespace std;
Freeze::EvictorPtr Filesystem::NodeI::_evictor;
Filesystem::NodeI::NodeI()
-#ifdef __SUNPRO_CC
: _id(Ice::Identity())
-#endif
{
}
@@ -242,11 +240,11 @@ Filesystem::DirectoryI::DirectoryI(const Ice::Identity& id) :
Ice::ObjectPtr
Filesystem::NodeFactory::create(const string& type)
{
- if(type == "::Filesystem::PersistentFile")
+ if(type == PersistentFile::ice_staticId())
{
return new FileI;
}
- else if(type == "::Filesystem::PersistentDirectory")
+ else if(type == PersistentDirectory::ice_staticId())
{
return new DirectoryI;
}