summaryrefslogtreecommitdiff
path: root/include/rtl/byteseq.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-27 10:45:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-27 10:47:33 +0100
commite344d2ac328332aeb0e326636a0a2cd61b812b6a (patch)
tree5563c5639c13810850253186cfd91aaf94488a57 /include/rtl/byteseq.hxx
parent65191cda819ee8f4d14f6cdf12568c35e46b5c66 (diff)
Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Change-Id: Ibf43c5ded609b489952e1cc666cac1e72ffa2386
Diffstat (limited to 'include/rtl/byteseq.hxx')
-rw-r--r--include/rtl/byteseq.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtl/byteseq.hxx b/include/rtl/byteseq.hxx
index 1d39ddefcf15..c84bc9f4f916 100644
--- a/include/rtl/byteseq.hxx
+++ b/include/rtl/byteseq.hxx
@@ -87,7 +87,7 @@ inline ByteSequence & ByteSequence::operator = ( const ByteSequence & rSeq ) SAL
return *this;
}
//__________________________________________________________________________________________________
-inline sal_Bool ByteSequence::operator == ( const ByteSequence & rSeq ) const SAL_THROW(())
+inline bool ByteSequence::operator == ( const ByteSequence & rSeq ) const SAL_THROW(())
{
return ::rtl_byte_sequence_equals( _pSequence, rSeq._pSequence );
}
@@ -112,7 +112,7 @@ inline sal_Int8 & ByteSequence::operator [] ( sal_Int32 nIndex )
return getArray()[ nIndex ];
}
//__________________________________________________________________________________________________
-inline sal_Bool ByteSequence::operator != ( const ByteSequence & rSeq ) const SAL_THROW(())
+inline bool ByteSequence::operator != ( const ByteSequence & rSeq ) const SAL_THROW(())
{
return (! operator == ( rSeq ));
}