diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-22 19:12:34 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-23 15:30:08 +0200 |
commit | 91081c56b0732a3b378d331ac3bd299a369788f7 (patch) | |
tree | c71cb2085b033e33d9502908c1674c1994159531 /sfx2 | |
parent | 7c6345c5e9be7c377c11c0bd30b6739286075b2a (diff) |
Use automatic integer type, with minor simplifications
Change-Id: I08b8370311b11d45ab744875f7ad6b885f318a74
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplateslocal.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/doctemplateslocal.cxx b/sfx2/source/doc/doctemplateslocal.cxx index 30ca595a7fec..cccfb2fa9fc7 100644 --- a/sfx2/source/doc/doctemplateslocal.cxx +++ b/sfx2/source/doc/doctemplateslocal.cxx @@ -159,8 +159,8 @@ void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const u m_aElementsSeq.push_back( aName ); - sal_Int32 nNewEntryNum = m_aResultSeq.size() + 1; - m_aResultSeq.resize( nNewEntryNum ); + const auto nNewEntryNum = m_aResultSeq.size(); + m_aResultSeq.resize( nNewEntryNum+1 ); const OUString aNameValue = xAttribs->getValueByName( g_sNameAttr ); if ( aNameValue.isEmpty() ) @@ -170,8 +170,8 @@ void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const u if ( aUINameValue.isEmpty() ) throw xml::sax::SAXException(); // TODO: the ID value must present - m_aResultSeq[nNewEntryNum-1].First = aNameValue; - m_aResultSeq[nNewEntryNum-1].Second = aUINameValue; + m_aResultSeq[nNewEntryNum].First = aNameValue; + m_aResultSeq[nNewEntryNum].Second = aUINameValue; } else { |