diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:19:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:48 +0200 |
commit | 607b6ced16e840dc860bbd3ea934816b6e1c6680 (patch) | |
tree | 099f69462f3fa6d50ab92f920ccb38f08a104c09 /sax | |
parent | f2966da1111ec0c74177dcb643ecba951f79aa8c (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I923b1b92f07c2db6d88c7682f1733fd8fd765f90
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 4 | ||||
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index 0d1aa9ddc96b..b94b705fbf32 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -122,9 +122,9 @@ sal_Bool FastAttributeList::hasAttribute( ::sal_Int32 Token ) throw (RuntimeExce { for (size_t i = 0; i < maAttributeTokens.size(); ++i) if (maAttributeTokens[i] == Token) - return sal_True; + return true; - return sal_False; + return false; } sal_Int32 FastAttributeList::getValueToken( ::sal_Int32 Token ) throw (SAXException, RuntimeException, std::exception) diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 211d8fa729c4..70f739733c89 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -82,7 +82,7 @@ namespace sax_fastparser { rtl_math_doubleToString( &mpDoubleStr, &mnDoubleStrCapacity, 0, value, rtl_math_StringFormat_G, RTL_STR_MAX_VALUEOFDOUBLE - RTL_CONSTASCII_LENGTH("-x.E-xxx"), '.', nullptr, - 0, sal_True); + 0, true); write(mpDoubleStr->buffer, mpDoubleStr->length); // and "clear" the string |