From 2604eed40fe83e1c5bd8dab43ae26ba6aec093d4 Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan@randomdan.homeip.net>
Date: Sun, 7 Feb 2016 14:49:08 +0000
Subject: Don't require ModelPartFor compat wrapper

---
 project2/ice/slice2Daemon.cpp | 2 +-
 project2/ice/slice2Rows.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/project2/ice/slice2Daemon.cpp b/project2/ice/slice2Daemon.cpp
index 41e71f1..e9d7922 100644
--- a/project2/ice/slice2Daemon.cpp
+++ b/project2/ice/slice2Daemon.cpp
@@ -50,7 +50,7 @@ Slice2Daemon::visitOperation(const Slice::OperationPtr & o)
 	visitParameterMap(o);
 	if (o->returnType()) {
 		fprintf(code, "\t\t\t\t%s rtn;\n", returnTypeToString(o->returnType(), o->returnIsOptional()).c_str());
-		fprintf(code, "\t\t\t\tSlicer::ModelPartPtr mpp = Slicer::ModelPartFor(rtn);\n");
+		fprintf(code, "\t\t\t\tSlicer::ModelPartPtr mpp = Slicer::ModelPart::CreateFor(rtn);\n");
 		fprintf(code, "\t\t\t\texecuteView(\"%s/%s/%s\", mpp, params);\n", module.c_str(), interface.c_str(), o->name().c_str());
 		fprintf(code, "\t\t\t\treturn rtn;\n");
 	}
diff --git a/project2/ice/slice2Rows.cpp b/project2/ice/slice2Rows.cpp
index cbc002a..8fa17b8 100644
--- a/project2/ice/slice2Rows.cpp
+++ b/project2/ice/slice2Rows.cpp
@@ -59,7 +59,7 @@ Slice2Rows::visitOperation(const Slice::OperationPtr & o)
 		fprintf(code, "\t\t\t\t\t\tauto result = ");
 		CallOperation(o);
 		fprintf(code, ";\n");
-		fprintf(code, "\t\t\t\t\t\tSlicer::ModelPartPtr mp = Slicer::ModelPartFor(result);\n");
+		fprintf(code, "\t\t\t\t\t\tSlicer::ModelPartPtr mp = Slicer::ModelPart::CreateFor(result);\n");
 		fprintf(code, "\t\t\t\t\t\ttoRpc->Serialize(mp);\n");
 		fprintf(code, "\t\t\t\t\t}\n\n");
 		ParameterVariables(o);
-- 
cgit v1.2.3