summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/pickle/ServantFactory.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-17 06:54:16 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-17 06:54:16 +0000
commit4e93ff32d429f4f23e4c4de0bec12c2cfcc940f1 (patch)
tree8bb7d7fa54030cf9e269d5f465790c8faf7ca7df /cpp/demo/Ice/pickle/ServantFactory.cpp
parentmore cool stuff (diff)
downloadice-4e93ff32d429f4f23e4c4de0bec12c2cfcc940f1.tar.bz2
ice-4e93ff32d429f4f23e4c4de0bec12c2cfcc940f1.tar.xz
ice-4e93ff32d429f4f23e4c4de0bec12c2cfcc940f1.zip
fixes
Diffstat (limited to 'cpp/demo/Ice/pickle/ServantFactory.cpp')
-rw-r--r--cpp/demo/Ice/pickle/ServantFactory.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/demo/Ice/pickle/ServantFactory.cpp b/cpp/demo/Ice/pickle/ServantFactory.cpp
index fb162dbe0db..fd34ec210a7 100644
--- a/cpp/demo/Ice/pickle/ServantFactory.cpp
+++ b/cpp/demo/Ice/pickle/ServantFactory.cpp
@@ -17,11 +17,6 @@ using namespace std;
Ice::ObjectPtr
ServantFactory::create(const string& type)
{
- if (type == "::Persistent")
- {
- return new Persistent;
- }
-
- assert(false);
- return 0;
+ assert(type == "::Persistent");
+ return new Persistent;
}