Commit a5d30fbc authored by Ben Boeckel's avatar Ben Boeckel

vtkWin32OpenGLRenderWindow: wrap assignments in while() in parens

Change-Id: I6dcfe3eb8103b616a1260e39c0f363bf5ea3892b
parent 1932e6c2
......@@ -1532,7 +1532,7 @@ void vtkWin32OpenGLRenderWindow::CreateOffScreenDC(HBITMAP hbmp, HDC aHdc)
vtkRenderer *ren;
vtkCollectionSimpleIterator rsit;
this->Renderers->InitTraversal(rsit);
while (ren = this->Renderers->GetNextRenderer(rsit))
while ((ren = this->Renderers->GetNextRenderer(rsit)))
{
ren->SetRenderWindow(NULL);
ren->SetRenderWindow(this);
......@@ -1635,7 +1635,7 @@ void vtkWin32OpenGLRenderWindow::ResumeScreenRendering(void)
vtkRenderer *ren;
vtkCollectionSimpleIterator rsit;
this->Renderers->InitTraversal(rsit);
while (ren = this->Renderers->GetNextRenderer(rsit))
while ((ren = this->Renderers->GetNextRenderer(rsit)))
{
ren->SetRenderWindow(NULL);
ren->SetRenderWindow(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment