message: samples: avoid using of legacy code constructions in viz sample
diff: @@ -163,7 +163,7 @@ int main (int argc,char **argv)
  waitKey(30);
  //! [slide_bar_for_thresh]
  //! [manage_viz_imshow_window]
  - h.fen3D = new viz::Viz3d("3D Histogram");
  + h.fen3D = makePtr<viz::Viz3d>("3D Histogram");
  h.nbWidget=0;
  h.fen3D->registerKeyboardCallback(KeyboardViz3d,&h);
  DrawHistogram3D(h);
  