1
0
Fork 0

GUI: std::move to reduce allocations

This commit is contained in:
Duncan Ogilvie 2019-09-07 16:43:20 +02:00
parent 3efe95135b
commit 67341fe997
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 = "";