diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-17 06:54:16 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-17 06:54:16 +0000 |
commit | 4e93ff32d429f4f23e4c4de0bec12c2cfcc940f1 (patch) | |
tree | 8bb7d7fa54030cf9e269d5f465790c8faf7ca7df /cpp/demo/Ice/pickle/ServantFactory.cpp | |
parent | more cool stuff (diff) | |
download | ice-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.cpp | 9 |
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; } |