[vtk-developers] vtkFileOutputWindow syntax

David Doria daviddoria at gmail.com
Tue Jun 12 13:30:46 EDT 2012


> You're not passing it to itself, you're calling a *static* method to set a
> static data member with an instance pointer.
>
> It would be better phrased as:
>
>   vtkOutputWindow::SetInstance(fileOutputWindow);
>
> rather than:
>
>   fileOutputWindow->SetInstance(fileOutputWindow);
>
> because the "class::static_method" phrasing reflects what's actually
> happening.

Thanks David. Sorry, I totally missed the static qualifier. It all
makes sense now. I changed the syntax of the call to reflect as you
suggested.

David



More information about the vtk-developers mailing list