loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I886fa2cc662072ad746d3828ba66bbd368121de8
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user