forked from qt-creator/qt-creator
Debugger: Strip QLatin1* where possible
Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d0d6f99491
commit
147a3c27c4
@@ -87,7 +87,7 @@ int ConsoleItemModel::sizeOfFile(const QFont &font)
|
||||
if (lastReadOnlyRow < 0)
|
||||
return 0;
|
||||
QString filename = static_cast<ConsoleItem *>(rootItem()->childAt(lastReadOnlyRow))->file();
|
||||
const int pos = filename.lastIndexOf(QLatin1Char('/'));
|
||||
const int pos = filename.lastIndexOf('/');
|
||||
if (pos != -1)
|
||||
filename = filename.mid(pos + 1);
|
||||
|
||||
@@ -100,7 +100,7 @@ int ConsoleItemModel::sizeOfFile(const QFont &font)
|
||||
int ConsoleItemModel::sizeOfLineNumber(const QFont &font)
|
||||
{
|
||||
QFontMetrics fm(font);
|
||||
return fm.width(QLatin1String("88888"));
|
||||
return fm.width("88888");
|
||||
}
|
||||
|
||||
} // Internal
|
||||
|
||||
Reference in New Issue
Block a user