Skip to content

Commit

Permalink
Fix -Wextra warning in pcl_visualizer.h
Browse files Browse the repository at this point in the history
  warning: base class ‘class vtkCommand’ should be explicitly initialized in the copy constructor [-Wextra]
  • Loading branch information
taketwo committed May 8, 2019
1 parent a3ba8eb commit f333091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualization/include/pcl/visualization/pcl_visualizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2038,7 +2038,7 @@ namespace pcl
static FPSCallback *New () { return (new FPSCallback); }

FPSCallback () : actor (), pcl_visualizer (), decimated (), last_fps(0.0f) {}
FPSCallback (const FPSCallback& src) : actor (src.actor), pcl_visualizer (src.pcl_visualizer), decimated (src.decimated), last_fps (src.last_fps) {}
FPSCallback (const FPSCallback& src) : vtkCommand (src), actor (src.actor), pcl_visualizer (src.pcl_visualizer), decimated (src.decimated), last_fps (src.last_fps) {}
FPSCallback& operator = (const FPSCallback& src) { actor = src.actor; pcl_visualizer = src.pcl_visualizer; decimated = src.decimated; last_fps = src.last_fps; return (*this); }

void
Expand Down

0 comments on commit f333091

Please sign in to comment.