GUI: std::move to reduce allocations
This commit is contained in:
parent
3efe95135b
commit
67341fe997
|
|
@ -85,7 +85,7 @@ void StdTable::setRowCount(dsint count)
|
|||
void StdTable::setCellContent(int r, int c, QString s)
|
||||
{
|
||||
if(isValidIndex(r, c))
|
||||
mData[r][c].text = s;
|
||||
mData[r][c].text = std::move(s);
|
||||
}
|
||||
|
||||
QString StdTable::getCellContent(int r, int c)
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ void MemoryMapView::refreshMap()
|
|||
wS = tr("Exception information");
|
||||
else
|
||||
wS = QString("");
|
||||
setCellContent(wI, 3, wS);
|
||||
setCellContent(wI, 3, std::move(wS));
|
||||
|
||||
// Type
|
||||
const char* type = "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue