summaryrefslogtreecommitdiffstats
path: root/lib/kross/python/cxx/Objects.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/python/cxx/Objects.hxx')
-rw-r--r--lib/kross/python/cxx/Objects.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kross/python/cxx/Objects.hxx b/lib/kross/python/cxx/Objects.hxx
index 3aa790e6..41648320 100644
--- a/lib/kross/python/cxx/Objects.hxx
+++ b/lib/kross/python/cxx/Objects.hxx
@@ -1470,8 +1470,8 @@ namespace Py
// Python strings return strings as individual elements.
// I'll try having a class Char which is a String of length 1
//
- typedef std::basic_string<Py_UNICODE> tqunicodestring;
- extern Py_UNICODE tqunicode_null_string[1];
+ typedef std::basic_string<Py_UNICODE> unicodestring;
+ extern Py_UNICODE unicode_null_string[1];
class Char: public Object
{
@@ -1535,7 +1535,7 @@ namespace Py
return *this;
}
- Char& operator= (const tqunicodestring& v)
+ Char& operator= (const unicodestring& v)
{
set(PyUnicode_FromUnicode (const_cast<Py_UNICODE*>(v.data()),1), true);
return *this;
@@ -1650,7 +1650,7 @@ namespace Py
static_cast<int>( v.length() ) ), true );
return *this;
}
- String& operator= (const tqunicodestring& v)
+ String& operator= (const unicodestring& v)
{
set( PyUnicode_FromUnicode( const_cast<Py_UNICODE*>( v.data() ),
static_cast<int>( v.length() ) ), true );
@@ -1706,16 +1706,16 @@ namespace Py
}
}
- tqunicodestring as_tqunicodestring() const
+ unicodestring as_unicodestring() const
{
if( isUnicode() )
{
- return tqunicodestring( PyUnicode_AS_UNICODE( ptr() ),
+ return unicodestring( PyUnicode_AS_UNICODE( ptr() ),
static_cast<size_type>( PyUnicode_GET_SIZE( ptr() ) ) );
}
else
{
- throw TypeError("can only return tqunicodestring from Unicode object");
+ throw TypeError("can only return unicodestring from Unicode object");
}
}
};