From 2d16026df61a5bd8ad3b4b3e494da845cae9fc3e Mon Sep 17 00:00:00 2001 From: Joe Howse Date: Sat, 27 Dec 2014 00:11:14 -0400 Subject: [PATCH] more const correctness in OpenNI2 getProperty --- modules/videoio/src/cap_openni2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_openni2.cpp b/modules/videoio/src/cap_openni2.cpp index d5d48d9..cfe51eb 100644 --- a/modules/videoio/src/cap_openni2.cpp +++ b/modules/videoio/src/cap_openni2.cpp @@ -466,7 +466,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const propValue = getDepthGeneratorProperty( propIdx ); break; case CV_CAP_PROP_OPENNI2_SYNC : - propValue = device.getDepthColorSyncEnabled(); + propValue = const_cast(this)->device.getDepthColorSyncEnabled(); case CV_CAP_PROP_OPENNI2_MIRROR: { bool isMirroring = color.getMirroringEnabled() && depth.getMirroringEnabled(); -- 2.7.4