loplugin:salbool: Automatic rewrite of sal_False/True

Change-Id: I886fa2cc662072ad746d3828ba66bbd368121de8
This commit is contained in:
Stephan Bergmann
2016-04-20 17:18:37 +02:00
parent 2a455e4a36
commit ac6dc5751e
2 changed files with 3 additions and 3 deletions

View File

@@ -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
{

View File

@@ -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