diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-12 22:54:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-12 22:54:59 +0200 |
commit | 68a04271325dbb9add90960212a5b19e89220f29 (patch) | |
tree | 421c4a5ad41fcb2a719493330e44270d94097471 /sc/source/core/data/validat.cxx | |
parent | 7677eafaabb29b2bc3f136144d22e3e07e0e0790 (diff) |
ScValidationDataList: use const_iterator
Change-Id: Ia465bc3b4bb4c075d235ccd14cac0248b198d470
Diffstat (limited to 'sc/source/core/data/validat.cxx')
-rw-r--r-- | sc/source/core/data/validat.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx index f41adffac3eb..4ccb551879dc 100644 --- a/sc/source/core/data/validat.cxx +++ b/sc/source/core/data/validat.cxx @@ -884,8 +884,10 @@ ScValidationDataList::ScValidationDataList(const ScValidationDataList& rList) : { // fuer Ref-Undo - echte Kopie mit neuen Tokens! - for( iterator it = rList.begin(); it != rList.end(); ++it ) + for (const_iterator it = rList.begin(); it != rList.end(); ++it) + { InsertNew( (*it)->Clone() ); + } //! sortierte Eintraege aus rList schneller einfuegen ??? } @@ -895,8 +897,10 @@ ScValidationDataList::ScValidationDataList(ScDocument* pNewDoc, { // fuer neues Dokument - echte Kopie mit neuen Tokens! - for( iterator it = rList.begin(); it != rList.end(); ++it ) + for (const_iterator it = rList.begin(); it != rList.end(); ++it) + { InsertNew( (*it)->Clone(pNewDoc) ); + } //! sortierte Eintraege aus rList schneller einfuegen ??? } |