Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4876bf9e authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent acc6a83a
......@@ -108,7 +108,8 @@ void AttachPropertyDialog::slotSave()
void AttachPropertyDialog::formatProperties( const QMap<int,KTNEFProperty*>& props, QTreeWidget *lv,
QTreeWidgetItem *item, const QString &prefix )
{
for ( QMap<int,KTNEFProperty*>::ConstIterator it = props.begin(); it != props.end(); ++it ) {
QMap<int,KTNEFProperty*>::ConstIterator end(props.constEnd());
for ( QMap<int,KTNEFProperty*>::ConstIterator it = props.constBegin(); it != end; ++it ) {
QTreeWidgetItem *newItem = 0;
if ( lv ) {
newItem = new QTreeWidgetItem( lv, QStringList( ( *it )->keyString() ) );
......
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