diff options
-rw-r--r-- | filter/source/xsltdialog/typedetectionimport.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/filter/source/xsltdialog/typedetectionimport.cxx b/filter/source/xsltdialog/typedetectionimport.cxx index bb6be3eb0deb..ffce4d9c8702 100644 --- a/filter/source/xsltdialog/typedetectionimport.cxx +++ b/filter/source/xsltdialog/typedetectionimport.cxx @@ -135,13 +135,10 @@ static OUString getSubdata( int index, sal_Unicode delimeter, const OUString& rD Node* TypeDetectionImporter::findTypeNode( const OUString& rType ) { // now delete type nodes - NodeVector::iterator aIter = maTypeNodes.begin(); - while( aIter != maTypeNodes.end() ) + for (NodeVector::const_iterator aIter(maTypeNodes.begin()), aEnd(maTypeNodes.end()); aIter != aEnd; ++aIter) { if( (*aIter)->maName == rType ) return (*aIter); - - ++aIter; } return NULL; |