Use braced initializer list in returns

Replaces explicit calls to the constructor in a return with a braced
initializer list.
This commit is contained in:
Luís Pereira
2019-04-11 12:46:23 +01:00
committed by Alf Gaida
parent 5e44880a70
commit b87de89767
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ void Emulation::setImageSize(int lines, int columns)
QSize Emulation::imageSize() const
{
return QSize(_currentScreen->getColumns(), _currentScreen->getLines());
return {_currentScreen->getColumns(), _currentScreen->getLines()};
}
ushort ExtendedCharTable::extendedCharHash(ushort* unicodePoints , ushort length) const