From 9b0bafb82c3cbb6e8afb1c40126a69b5d72c8ef4 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 6 Jun 2018 18:29:05 +0300 Subject: [PATCH] samples: fix callback function type --- samples/tapi/clahe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/tapi/clahe.cpp b/samples/tapi/clahe.cpp index b663b020bf..0b7de45a60 100644 --- a/samples/tapi/clahe.cpp +++ b/samples/tapi/clahe.cpp @@ -14,7 +14,7 @@ Ptr pFilter; int tilesize; int cliplimit; -static void TSize_Callback(int pos) +static void TSize_Callback(int pos, void* /*data*/) { if(pos==0) pFilter->setTilesGridSize(Size(1,1)); @@ -22,7 +22,7 @@ static void TSize_Callback(int pos) pFilter->setTilesGridSize(Size(tilesize,tilesize)); } -static void Clip_Callback(int) +static void Clip_Callback(int, void* /*data*/) { pFilter->setClipLimit(cliplimit); }