forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -134,7 +134,7 @@ bool BreakpointParameters::conditionsMatch(const QString &other) const
|
||||
|
||||
void BreakpointParameters::updateLocation(const QString &location)
|
||||
{
|
||||
if (location.size()) {
|
||||
if (!location.isEmpty()) {
|
||||
int pos = location.indexOf(':');
|
||||
lineNumber = location.midRef(pos + 1).toInt();
|
||||
QString file = location.left(pos);
|
||||
|
||||
Reference in New Issue
Block a user