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.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
index 984a4c282e1..472500d2761 100644
--- a/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
+++ b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -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;
}