summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:18:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:46 +0200
commitac6dc5751e785b25a36f6368bf0996ea7c73329b (patch)
treec3c5d95d9789a531de518d82951462333bee8e98 /pyuno
parent2a455e4a36fe41f0c7a6e6a87582529043d7520f (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I886fa2cc662072ad746d3828ba66bbd368121de8
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_module.cxx2
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 51744344a4b7..b574109ccfa0 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -632,7 +632,7 @@ static PyObject * generateUuid(
SAL_UNUSED_PARAMETER PyObject *, SAL_UNUSED_PARAMETER PyObject * )
{
Sequence< sal_Int8 > seq( 16 );
- rtl_createUuid( reinterpret_cast<sal_uInt8*>(seq.getArray()) , nullptr , sal_False );
+ rtl_createUuid( reinterpret_cast<sal_uInt8*>(seq.getArray()) , nullptr , false );
PyRef ret;
try
{
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index b4d8e24a636b..7a481f98cacb 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -692,12 +692,12 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con
// Convert the Python 3 booleans that are actually of type PyLong.
if(o == Py_True)
{
- sal_Bool b = sal_True;
+ sal_Bool b = true;
a = Any(&b, cppu::UnoType<bool>::get());
}
else if(o == Py_False)
{
- sal_Bool b = sal_False;
+ sal_Bool b = false;
a = Any(&b, cppu::UnoType<bool>::get());
}
else