diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-02 11:34:06 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-02 12:09:26 +0200 |
commit | c48cc19e1345fa7445190cef62224dbfed8433d0 (patch) | |
tree | df8a199801b27ec95ae9e94dc290e3b8d19e7e33 /svtools/source/dialogs | |
parent | e50b50974353d49f027415a98bd3fc9938a7c98b (diff) |
Re-introduce variable thought unused in 2004 and use it as presumably intended
Diffstat (limited to 'svtools/source/dialogs')
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 8a7f238e4ff4..e138075a3344 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -192,7 +192,8 @@ public: // loop throuzh the given names const AliasProgrammaticPair* pFields = _rFields.getConstArray(); - for (;pFields != pFields; ++pFields) + const AliasProgrammaticPair* pFieldsEnd = pFields + _rFields.getLength(); + for (;pFields != pFieldsEnd; ++pFields) { StringBagIterator aKnownPos = aKnownNames.find( pFields->ProgrammaticName ); if ( aKnownNames.end() != aKnownPos ) |