fullmetalcoder
14th June 2006, 15:50
For some reason I decided to refactor a piece of code of one of my projects this morning and the results I got sounded weird . After tracking errors I tried this piece of code :
QStringList val;
val << "subdirs";
qDebug("value : \'%s\'", val.at(0).toLatin1().data());
if ( val.at(0) != "subdirs" )
qFatal("Shit! what is QString doing?");
Guess the debug output I obtained!
value : 'subdirs'
Shit! what is QString doing?
:confused:
I was just wondering if there could be a rationnal reason for such a thing to happen... I tried a "make clean && qmake && make" => no changes!!! I'm about to reboot my computer re-"make clean && qmake && make", but, even it were to work again, I'd still be puzzled by this weird error...
QStringList val;
val << "subdirs";
qDebug("value : \'%s\'", val.at(0).toLatin1().data());
if ( val.at(0) != "subdirs" )
qFatal("Shit! what is QString doing?");
Guess the debug output I obtained!
value : 'subdirs'
Shit! what is QString doing?
:confused:
I was just wondering if there could be a rationnal reason for such a thing to happen... I tried a "make clean && qmake && make" => no changes!!! I'm about to reboot my computer re-"make clean && qmake && make", but, even it were to work again, I'd still be puzzled by this weird error...