summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Slice.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-12-21 11:12:14 -0500
committerBernard Normier <bernard@zeroc.com>2007-12-21 11:12:14 -0500
commit08ec7524df324e627bbb8d93c509f0d90badbe3b (patch)
treea640ae99a5e35b210352150feef4f71832b265c5 /py/modules/IcePy/Slice.cpp
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-08ec7524df324e627bbb8d93c509f0d90badbe3b.tar.bz2
ice-08ec7524df324e627bbb8d93c509f0d90badbe3b.tar.xz
ice-08ec7524df324e627bbb8d93c509f0d90badbe3b.zip
IceUtil cleanup (first commit)
Diffstat (limited to 'py/modules/IcePy/Slice.cpp')
-rw-r--r--py/modules/IcePy/Slice.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/py/modules/IcePy/Slice.cpp b/py/modules/IcePy/Slice.cpp
index 2f85be2097e..21da3bdf909 100644
--- a/py/modules/IcePy/Slice.cpp
+++ b/py/modules/IcePy/Slice.cpp
@@ -41,14 +41,14 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
vector<string> argSeq;
try
{
- argSeq = IceUtil::Options::split(cmd);
+ argSeq = IceUtilInternal::Options::split(cmd);
}
- catch(const IceUtil::BadOptException& ex)
+ catch(const IceUtilInternal::BadOptException& ex)
{
PyErr_Format(PyExc_RuntimeError, "error in Slice options: %s", ex.reason.c_str());
return 0;
}
- catch(const IceUtil::APIException& ex)
+ catch(const IceUtilInternal::APIException& ex)
{
PyErr_Format(PyExc_RuntimeError, "error in Slice options: %s", ex.reason.c_str());
return 0;
@@ -62,10 +62,10 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
}
}
- IceUtil::Options opts;
- opts.addOpt("D", "", IceUtil::Options::NeedArg, "", IceUtil::Options::Repeat);
- opts.addOpt("U", "", IceUtil::Options::NeedArg, "", IceUtil::Options::Repeat);
- opts.addOpt("I", "", IceUtil::Options::NeedArg, "", IceUtil::Options::Repeat);
+ IceUtilInternal::Options opts;
+ opts.addOpt("D", "", IceUtilInternal::Options::NeedArg, "", IceUtilInternal::Options::Repeat);
+ opts.addOpt("U", "", IceUtilInternal::Options::NeedArg, "", IceUtilInternal::Options::Repeat);
+ opts.addOpt("I", "", IceUtilInternal::Options::NeedArg, "", IceUtilInternal::Options::Repeat);
opts.addOpt("d", "debug");
opts.addOpt("", "ice");
opts.addOpt("", "checksum");
@@ -83,12 +83,12 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
return 0;
}
}
- catch(const IceUtil::BadOptException& ex)
+ catch(const IceUtilInternal::BadOptException& ex)
{
PyErr_Format(PyExc_RuntimeError, "error in Slice options: %s", ex.reason.c_str());
return 0;
}
- catch(const IceUtil::APIException& ex)
+ catch(const IceUtilInternal::APIException& ex)
{
PyErr_Format(PyExc_RuntimeError, "error in Slice options: %s", ex.reason.c_str());
return 0;
@@ -158,7 +158,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
// Generate the Python code into a string stream.
//
ostringstream codeStream;
- IceUtil::Output out(codeStream);
+ IceUtilInternal::Output out(codeStream);
out.setUseTab(false);
generate(u, all, checksum, includePaths, out);
u->destroy();