Return a const reference rather than a copy.
This commit is contained in:
@@ -17,9 +17,9 @@ void GraphicsWindow::SetVideoModeParams( const VideoModeParams ¶ms )
|
||||
g_CurrentParams = params;
|
||||
}
|
||||
|
||||
void GraphicsWindow::GetParams( VideoModeParams ¶msOut )
|
||||
const VideoModeParams &GraphicsWindow::GetParams()
|
||||
{
|
||||
paramsOut = g_CurrentParams;
|
||||
return g_CurrentParams;
|
||||
}
|
||||
|
||||
void GraphicsWindow::Update()
|
||||
|
||||
Reference in New Issue
Block a user