From: Anatoly Baksheev Date: Sat, 16 Nov 2013 17:04:21 +0000 (+0400) Subject: fixed warnings X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~856^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c6248005a1573515ec3df399cb23f8105750463;p=profile%2Fivi%2Fopencv.git fixed warnings --- diff --git a/modules/highgui/src/cap_openni.cpp b/modules/highgui/src/cap_openni.cpp index be5ed93..db9a518 100644 --- a/modules/highgui/src/cap_openni.cpp +++ b/modules/highgui/src/cap_openni.cpp @@ -171,6 +171,9 @@ public: xn::ImageGenerator &imageGenerator; private: + ApproximateSyncGrabber(const ApproximateSyncGrabber&); + ApproximateSyncGrabber& operator=(const ApproximateSyncGrabber&); + int maxBufferSize; bool isCircleBuffer; int maxTimeDuration; @@ -214,7 +217,7 @@ private: virtual bool grab( xn::DepthMetaData& depthMetaData, xn::ImageMetaData& imageMetaData ) { - while(1) + for(;;) { if( !isDepthFilled ) isDepthFilled = popDepthMetaData(depth); @@ -951,7 +954,7 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx ) propValue = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0; break; case CV_CAP_PROP_POS_MSEC : - propValue = depthGenerator.GetTimestamp(); + propValue = (double)depthGenerator.GetTimestamp(); break; case CV_CAP_PROP_POS_FRAMES : propValue = depthGenerator.GetFrameID(); @@ -1039,7 +1042,7 @@ double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx ) propValue = mode.nFPS; break; case CV_CAP_PROP_POS_MSEC : - propValue = imageGenerator.GetTimestamp(); + propValue = (double)imageGenerator.GetTimestamp(); break; case CV_CAP_PROP_POS_FRAMES : propValue = imageGenerator.GetFrameID();