diff --git a/Code/Common/mvdAbstractImageModel.cxx b/Code/Common/mvdAbstractImageModel.cxx index ddd1971a90bb8a35f66a44706d2d81a47fcbc69f..19838e76b318852745856ef4432c0ce319239d67 100644 --- a/Code/Common/mvdAbstractImageModel.cxx +++ b/Code/Common/mvdAbstractImageModel.cxx @@ -104,7 +104,7 @@ AbstractImageModel /* qDebug() << "stdBandNames1.size(): " << stdBandNames1.size(); for( unsigned int i=0; i<stdBandNames1.size(); ++i ) - qDebug() << i << ": " << QString::fromStdString( stdBandNames1[ i ] ); + qDebug() << i << ": " << QString( stdBandNames1[ i ].c_str() ); */ assert( stdBandNames1.empty() || @@ -125,7 +125,7 @@ AbstractImageModel /* qDebug() << "stdBandNames2.size(): " << stdBandNames2.size(); for( unsigned int i=0; i<stdBandNames2.size(); ++i ) - qDebug() << i << ": " << QString::fromStdString( stdBandNames2[ i ] ); + qDebug() << i << ": " << QString( stdBandNames2[ i ].c_str() ); */ assert( stdBandNames2.empty() || diff --git a/Code/Common/mvdAlgorithm.h b/Code/Common/mvdAlgorithm.h index 5fca44d6f4999f222863a471e33eb1c8db387990..87a6ac5a4f4b0e622a5b3f1e98c0bf290405bab3 100644 --- a/Code/Common/mvdAlgorithm.h +++ b/Code/Common/mvdAlgorithm.h @@ -263,7 +263,7 @@ AppendToQStringList( QStringList& qsl, const StringVector& sv ) it!=sv.end(); ++ it ) { - qsl.append( QString::fromStdString( *it ) ); + qsl.append( QString(it->c_str()) ); } return qsl;