Commit e63c85e1 authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 0c2d25c6
......@@ -81,7 +81,7 @@ static QString splitLine( QString &line )
startOfActualText = i + 1;
else
break;
i++;
++i;
}
// If the quote prefix only consists of whitespace, don't consider it as a quote prefix at all
......@@ -206,7 +206,7 @@ QString stripSignature( const QString &msg )
// Look for the SB beginning
int posSignatureBlock = res.indexOf( QLatin1Char('-'), posDeletingStart );
// The prefix before "-- "$
if ( res[posDeletingStart] == QLatin1Char('\n') )
if ( res.at(posDeletingStart) == QLatin1Char('\n') )
++posDeletingStart;
prefix = res.mid( posDeletingStart, posSignatureBlock - posDeletingStart );
......@@ -834,7 +834,7 @@ QString guessEmailAddressFromLoginName( const QString &loginName )
// try to determine the real name
const KUser user( loginName );
if ( user.isValid() ) {
QString fullName = user.property( KUser::FullName ).toString();
const QString fullName = user.property( KUser::FullName ).toString();
address = KPIMUtils::quoteNameIfNecessary(fullName) + QLatin1String(" <") + address + QLatin1Char('>');
}
......@@ -960,7 +960,7 @@ QString formatString( const QString &wildString, const QString &fromAddr )
QString str = stripEmailAddr( fromAddr );
uint j = 0;
for ( ; str[j]>QLatin1Char(' '); j++ )
for ( ; str[j]>QLatin1Char(' '); ++j )
;
unsigned int strLength( str.length() );
for ( ; j < strLength && str[j] <= QLatin1Char(' '); ++j )
......
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