summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 11:35:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:44 +0100
commitcedba3ffd897139a79d90d0e7192e5dd91aa7f14 (patch)
tree3c0670f05eec09f536da845c17b9f0f381a90b26 /pyuno
parent21eae4b202c40e09db2bba3a2b249716a0d94cd3 (diff)
Use bool
Change-Id: I4c05c602ecdd77d07e8106387270bf01718e975b
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_impl.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx
index 1222bf30b333..805466fad1e0 100644
--- a/pyuno/source/module/pyuno_impl.hxx
+++ b/pyuno/source/module/pyuno_impl.hxx
@@ -66,14 +66,14 @@ inline char * PyStr_AsString(PyObject *object)
return PyUnicode_AsUTF8(object);
}
-inline int PyStr_Check(PyObject *object)
+inline bool PyStr_Check(PyObject *object)
{
return PyUnicode_Check(object);
}
// compatibility wrappers for Python non-Unicode string/buffer type
// (PyBytes in 3, PyString in 2)
-inline int PyStrBytes_Check(PyObject *object)
+inline bool PyStrBytes_Check(PyObject *object)
{
return PyBytes_Check(object);
}
@@ -103,11 +103,11 @@ inline PyObject* PyStr_FromString(const char *string)
return PyString_FromString(string);
}
-inline int PyStr_Check(PyObject *object)
+inline bool PyStr_Check(PyObject *object)
{
return PyString_Check(object);
}
-inline int PyStrBytes_Check(PyObject *object)
+inline bool PyStrBytes_Check(PyObject *object)
{
return PyString_Check(object);
}