Kaydet (Commit) 9d725554 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:salbool

Change-Id: Id4194f4d5bb6fcf064985fddc6f7344a4d34ca04
üst 3c00e75c
......@@ -44,7 +44,7 @@ extern "C" {
*/
struct RegistryTypeReader_Api
{
TypeReaderImpl (TYPEREG_CALLTYPE *createEntry) (const sal_uInt8*, sal_uInt32, sal_Bool);
TypeReaderImpl (TYPEREG_CALLTYPE *createEntry) (const sal_uInt8*, sal_uInt32, bool);
void (TYPEREG_CALLTYPE *acquire) (TypeReaderImpl);
void (TYPEREG_CALLTYPE *release) (TypeReaderImpl);
sal_uInt16 (TYPEREG_CALLTYPE *getMinorVersion) (TypeReaderImpl);
......
......@@ -56,8 +56,8 @@
@since UDK 3.2.0
*/
REG_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_create(
void const * buffer, sal_uInt32 length, sal_Bool copy,
REG_DLLPUBLIC bool SAL_CALL typereg_reader_create(
void const * buffer, sal_uInt32 length, bool copy,
typereg_Version maxVersion, void ** result);
/**
......@@ -148,7 +148,7 @@ REG_DLLPUBLIC RTTypeClass SAL_CALL typereg_reader_getTypeClass(void * handle);
@since UDK 3.2.0
*/
REG_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_isPublished(void * handle);
REG_DLLPUBLIC bool SAL_CALL typereg_reader_isPublished(void * handle);
/**
Returns the type name of a type reader.
......@@ -301,7 +301,7 @@ REG_DLLPUBLIC void SAL_CALL typereg_reader_getFieldTypeName(
@since UDK 3.2.0
*/
REG_DLLPUBLIC sal_Bool SAL_CALL typereg_reader_getFieldValue(
REG_DLLPUBLIC bool SAL_CALL typereg_reader_getFieldValue(
void * handle, sal_uInt16 index, RTValueType * type,
union RTConstValueUnion * value);
......
......@@ -210,7 +210,7 @@ enum RTValueType {
/** specifies a variable container for field values.
*/
union RTConstValueUnion {
sal_Bool aBool;
bool aBool;
sal_Int8 aByte;
sal_Int16 aShort;
sal_uInt16 aUShort;
......
......@@ -1252,8 +1252,8 @@ typereg_Version TypeRegistryEntry::getVersion() const {
**************************************************************************/
sal_Bool TYPEREG_CALLTYPE typereg_reader_create(
void const * buffer, sal_uInt32 length, sal_Bool copy,
bool TYPEREG_CALLTYPE typereg_reader_create(
void const * buffer, sal_uInt32 length, bool copy,
typereg_Version maxVersion, void ** result)
{
if (length < OFFSET_CP || length > SAL_MAX_UINT32) {
......@@ -1287,7 +1287,7 @@ sal_Bool TYPEREG_CALLTYPE typereg_reader_create(
}
}
static TypeReaderImpl TYPEREG_CALLTYPE createEntry(const sal_uInt8* buffer, sal_uInt32 len, sal_Bool copyBuffer)
static TypeReaderImpl TYPEREG_CALLTYPE createEntry(const sal_uInt8* buffer, sal_uInt32 len, bool copyBuffer)
{
void * handle;
typereg_reader_create(buffer, len, copyBuffer, TYPEREG_VERSION_1, &handle);
......@@ -1364,7 +1364,7 @@ RTTypeClass TYPEREG_CALLTYPE typereg_reader_getTypeClass(void * hEntry)
return RT_TYPE_INVALID;
}
sal_Bool TYPEREG_CALLTYPE typereg_reader_isPublished(void * hEntry)
bool TYPEREG_CALLTYPE typereg_reader_isPublished(void * hEntry)
{
TypeRegistryEntry * entry = static_cast< TypeRegistryEntry * >(hEntry);
if (entry != nullptr) {
......@@ -1515,7 +1515,7 @@ RTFieldAccess TYPEREG_CALLTYPE typereg_reader_getFieldFlags(void * hEntry, sal_u
return pEntry->m_pFields->getFieldAccess(index);
}
sal_Bool TYPEREG_CALLTYPE typereg_reader_getFieldValue(
bool TYPEREG_CALLTYPE typereg_reader_getFieldValue(
void * hEntry, sal_uInt16 index, RTValueType * type,
RTConstValueUnion * value)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment