summaryrefslogtreecommitdiff
path: root/src/python.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-13 05:54:40 +0000
committerDana Jansens <danakj@orodu.net>2003-01-13 05:54:40 +0000
commitef02a0c8ae65f169157c90064a335303e964a4c1 (patch)
treef1a1bf6cfe05ee11545bfa811f5a2582e1906dce /src/python.cc
parent5a90d2b671f01f29043ab82f909440de0abfa362 (diff)
almost done the ustring conversion
Diffstat (limited to 'src/python.cc')
-rw-r--r--src/python.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python.cc b/src/python.cc
index a9a457f8..f6ed7a7e 100644
--- a/src/python.cc
+++ b/src/python.cc
@@ -66,7 +66,7 @@ bool python_get_long(const char *name, long *value)
return true;
}
-bool python_get_string(const char *name, std::string *value)
+bool python_get_string(const char *name, otk::ustring *value)
{
PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name));
if (!(val && PyString_Check(val))) return false;
@@ -75,7 +75,7 @@ bool python_get_string(const char *name, std::string *value)
return true;
}
-bool python_get_stringlist(const char *name, std::vector<std::string> *value)
+bool python_get_stringlist(const char *name, std::vector<otk::ustring> *value)
{
PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name));
if (!(val && PyList_Check(val))) return false;