[Libreoffice-commits] core.git: include/registry registry/source
Noel Grandin
noel at peralex.com
Thu Apr 9 01:19:45 PDT 2015
include/registry/reflread.hxx | 2 +-
include/registry/typereg_reader.hxx | 8 ++++----
include/registry/types.hxx | 2 +-
registry/source/reflread.cxx | 10 +++++-----
4 files changed, 11 insertions(+), 11 deletions(-)
New commits:
commit 9d725554bf4c7784baa2df91b9865ccc32b10ff8
Author: Noel Grandin <noel at peralex.com>
Date: Thu Apr 9 10:18:04 2015 +0200
loplugin:salbool
Change-Id: Id4194f4d5bb6fcf064985fddc6f7344a4d34ca04
diff --git a/include/registry/reflread.hxx b/include/registry/reflread.hxx
index fddb072..cf54139 100644
--- a/include/registry/reflread.hxx
+++ b/include/registry/reflread.hxx
@@ -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);
diff --git a/include/registry/typereg_reader.hxx b/include/registry/typereg_reader.hxx
index e6e1a4a..64c2261 100644
--- a/include/registry/typereg_reader.hxx
+++ b/include/registry/typereg_reader.hxx
@@ -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);
diff --git a/include/registry/types.hxx b/include/registry/types.hxx
index dc28e9d..0b15a8d 100644
--- a/include/registry/types.hxx
+++ b/include/registry/types.hxx
@@ -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;
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index da75964..3999c4e 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -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)
{
More information about the Libreoffice-commits
mailing list