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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user