Commit 99ced7d7 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some iterator

svn path=/trunk/KDE/kdeedu/kmplot/; revision=886884
parent de09277b
......@@ -574,8 +574,8 @@ void KmPlotIO::parseParameters( const QDomElement &n, Function * function )
QChar separator = (version < 1) ? ',' : ';';
QString tagName = (version < 5) ? "parameterlist" : "parameter-list";
QStringList str_parameters = n.namedItem( tagName ).toElement().text().split( separator, QString::SkipEmptyParts );
for( QStringList::const_iterator it = str_parameters.begin(); it != str_parameters.end(); ++it )
const QStringList str_parameters = n.namedItem( tagName ).toElement().text().split( separator, QString::SkipEmptyParts );
for( QStringList::const_iterator it = str_parameters.constBegin(); it != str_parameters.constEnd(); ++it )
function->m_parameters.list.append( Value( *it ));
}
......
......@@ -1584,8 +1584,8 @@ void ExpressionSanitizer::fixExpression( QString * str )
QString remaining = str->right( str->length() - i );
QMap< LengthOrderedString, StringType >::const_iterator end = strings.end();
for ( QMap< LengthOrderedString, StringType >::const_iterator it = strings.begin(); it != end; ++it )
QMap< LengthOrderedString, StringType >::const_iterator end = strings.constEnd();
for ( QMap< LengthOrderedString, StringType >::const_iterator it = strings.constBegin(); it != end; ++it )
{
if ( !remaining.startsWith( it.key() ) )
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment