summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/value/ServantFactory.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-17 06:02:06 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-17 06:02:06 +0000
commita4cb03bd60fc53b05abfd36100c5c3ba4d367543 (patch)
tree7bdb07b989d3a13cc747bb035ca8793bb9c3ab6e /cpp/demo/Ice/value/ServantFactory.cpp
parentmore fixes, more docu (diff)
downloadice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.tar.bz2
ice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.tar.xz
ice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.zip
more cool stuff
Diffstat (limited to 'cpp/demo/Ice/value/ServantFactory.cpp')
-rw-r--r--cpp/demo/Ice/value/ServantFactory.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/demo/Ice/value/ServantFactory.cpp b/cpp/demo/Ice/value/ServantFactory.cpp
index 4d8e3398c52..6f774c4a014 100644
--- a/cpp/demo/Ice/value/ServantFactory.cpp
+++ b/cpp/demo/Ice/value/ServantFactory.cpp
@@ -15,13 +15,17 @@
using namespace std;
Ice::ObjectPtr
-Factory::create(const string& id)
+ServantFactory::create(const string& type)
{
- if (id == "::Printer")
+ if (type == "::Printer")
+ {
return new PrinterI;
+ }
- if (id == "::DerivedPrinter")
+ if (type == "::DerivedPrinter")
+ {
return new DerivedPrinterI;
+ }
assert(false);
return 0;