rem: if ( f.open( IO_WriteOnly ) )
add: if ( f.open( QIODevice::WriteOnly ) )
context: void saveProperty( QListView *lv, KTNEFPropertySet *pSet, QWidget *parent ){	QListViewItem *item = lv->selectedItem();	if ( !item )		KMessageBox::error( parent, i18n( "Select an item." ) );	else if ( item->text( 2 ).isEmpty() )		KMessageBox::error( parent, i18n( "The selected item cannot be saved." ) );	else	{		QString tag = item->text( 2 );		int key = tag.mid( 5 ).toInt();		QVariant prop = ( tag.startsWith( "attr_" ) ? pSet->attribute( key ) : pSet->property( key ) );		QString filename = KFileDialog::getSaveFileName( tag, QString::null, parent );		if ( !filename.isEmpty() )		{			QFile f( filename );			if ( f.open( IO_WriteOnly ) )			{				switch ( prop.type() )				{					case QVariant::ByteArray:						f.writeBlock( prop.asByteArray().data(), prop.asByteArray().size() );						break;					default:						{							QTextStream t( &f );							t << prop.toString();							break;						}				}				f.close();			}			else				KMessageBox::error( parent, i18n( "Unable to open file for writing, check file permissions." ) );		}	}}