codeslicer
20th February 2010, 00:40
What would be least expensive in this situation?
QStringList lineStringList = file->readLine().split("\t");
or
QString lineString = file->readLine();
QStringList lineStringList = lineString.split("\t");
Thanks!
BTW, the first one doesn't compile because it's not a QString but a byte array, but still, is it better to create a variable for each step or to combine?
~codeslicer
QStringList lineStringList = file->readLine().split("\t");
or
QString lineString = file->readLine();
QStringList lineStringList = lineString.split("\t");
Thanks!
BTW, the first one doesn't compile because it's not a QString but a byte array, but still, is it better to create a variable for each step or to combine?
~codeslicer