ScValidationDataList: use const_iterator
Change-Id: Ia465bc3b4bb4c075d235ccd14cac0248b198d470
This commit is contained in:
parent
7677eafaab
commit
68a0427132
1 changed files with 6 additions and 2 deletions
|
@ -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 ???
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue