collapse #ifdef branches

This commit is contained in:
Oswald Buddenhagen
2009-10-20 19:26:20 +02:00
parent 8c4c5f2ebf
commit b8daa7d5a7

View File

@@ -1936,11 +1936,7 @@ void GdbEngine::handleBreakInsert(const GdbResponse &response)
const BreakpointData *data = handler->at(index); const BreakpointData *data = handler->at(index);
// Note that it is perfectly correct that the file name is put // Note that it is perfectly correct that the file name is put
// in quotes but not escaped. GDB simply is like that. // in quotes but not escaped. GDB simply is like that.
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN) || defined(Q_OS_MAC)
QFileInfo fi(data->fileName);
QString where = _c('"') + fi.fileName() + _("\":")
+ data->lineNumber;
#elif defined(Q_OS_MAC)
QFileInfo fi(data->fileName); QFileInfo fi(data->fileName);
QString where = _c('"') + fi.fileName() + _("\":") QString where = _c('"') + fi.fileName() + _("\":")
+ data->lineNumber; + data->lineNumber;