diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/documentenumeration.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/documentenumeration.cxx b/basctl/source/basicide/documentenumeration.cxx index 4140bca4c906..fd1517d097f9 100644 --- a/basctl/source/basicide/documentenumeration.cxx +++ b/basctl/source/basicide/documentenumeration.cxx @@ -124,11 +124,10 @@ namespace basctl { namespace docs { // those continue; - if ( aEncounteredModels.find( xModel ) != aEncounteredModels.end() ) + if ( !aEncounteredModels.insert( xModel ).second ) // there might be multiple frames for the same model // handle it only once continue; - aEncounteredModels.insert( xModel ); // create a DocumentDescriptor DocumentDescriptor aDescriptor; |