diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 4 | ||||
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index b94b705fbf32..e9ae452a7aca 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -120,8 +120,8 @@ void FastAttributeList::addUnknown( const OString& rName, const OString& value ) // XFastAttributeList sal_Bool FastAttributeList::hasAttribute( ::sal_Int32 Token ) throw (RuntimeException, std::exception) { - for (size_t i = 0; i < maAttributeTokens.size(); ++i) - if (maAttributeTokens[i] == Token) + for (sal_Int32 i : maAttributeTokens) + if (i == Token) return true; return false; diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 70f739733c89..49ed24b8e644 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -255,11 +255,11 @@ namespace sax_fastparser { #ifdef DBG_UTIL ::std::set<OString> DebugAttributes; #endif - for (size_t j = 0; j < maTokenValues.size(); j++) + for (const TokenValue & rTokenValue : maTokenValues) { writeBytes(sSpace, N_CHARS(sSpace)); - sal_Int32 nToken = maTokenValues[j].nToken; + sal_Int32 nToken = rTokenValue.nToken; writeId(nToken); #ifdef DBG_UTIL @@ -271,7 +271,7 @@ namespace sax_fastparser { writeBytes(sEqualSignAndQuote, N_CHARS(sEqualSignAndQuote)); - write(maTokenValues[j].pValue, -1, true); + write(rTokenValue.pValue, -1, true); writeBytes(sQuote, N_CHARS(sQuote)); } |