From c3b83737eccb34204d2054fdda3cd8124c42e277 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 13 Apr 2023 03:19:59 -0400 Subject: [PATCH] COMP: Update ctkVTKAbstractViewTest1 to fix build against VTK 8 --- .../VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewTest1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewTest1.cpp b/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewTest1.cpp index 979593d4ba..081822e6af 100644 --- a/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewTest1.cpp +++ b/Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewTest1.cpp @@ -31,6 +31,7 @@ #include "ctkVTKWidgetsUtils.h" // VTK includes +#include #include #include @@ -112,7 +113,7 @@ int ctkVTKAbstractViewTest1(int argc, char * argv [] ) vtkNew renderEventCallback; renderEventCallback->SetCallback(onRenderEvent); - sliceView.renderWindow()->AddObserver(vtkCommand::RenderEvent, renderEventCallback); + sliceView.renderWindow()->AddObserver(vtkCommand::RenderEvent, renderEventCallback.GetPointer()); sliceView.setMaximumUpdateRate(VTK_DOUBLE_MAX); sliceView.show(); @@ -123,7 +124,7 @@ int ctkVTKAbstractViewTest1(int argc, char * argv [] ) // We expect that the rendering has been triggered at least once CHECK_BOOL(RenderCount == 0, false); - bool sliceViewWasPaused = sliceView.pauseRender(); + sliceView.pauseRender(); RenderCount = 0; sliceView.scheduleRender(); sleep_ms(100);