Don't call the QString copy constructor without need
This commit is contained in:
parent
4c195e1a16
commit
128241c95c
1 changed files with 2 additions and 2 deletions
|
@ -155,9 +155,9 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
|
|||
return QIcon::fromTheme(icon).pixmap(32, 32);
|
||||
}
|
||||
case IdModelRole:
|
||||
return QString(device->id());
|
||||
return device->id();
|
||||
case NameModelRole:
|
||||
return QString(device->name());
|
||||
return device->name();
|
||||
case Qt::ToolTipRole:
|
||||
return QVariant(); //To implement
|
||||
case StatusModelRole: {
|
||||
|
|
Loading…
Reference in a new issue