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:
@@ -259,7 +259,7 @@ QRect ScreenWindow::scrollRegion() const
|
||||
if ( atEndOfOutput() && equalToScreenSize )
|
||||
return _screen->lastScrolledRegion();
|
||||
else
|
||||
return QRect(0,0,windowColumns(),windowLines());
|
||||
return {0,0,windowColumns(),windowLines()};
|
||||
}
|
||||
|
||||
void ScreenWindow::notifyOutputChanged()
|
||||
|
||||
Reference in New Issue
Block a user