more const correctness in OpenNI2 getProperty

This commit is contained in:
Joe Howse 2014-12-27 00:11:14 -04:00
parent b7a3204c57
commit 2d16026df6

View File

@ -466,7 +466,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const
propValue = getDepthGeneratorProperty( propIdx ); propValue = getDepthGeneratorProperty( propIdx );
break; break;
case CV_CAP_PROP_OPENNI2_SYNC : case CV_CAP_PROP_OPENNI2_SYNC :
propValue = device.getDepthColorSyncEnabled(); propValue = const_cast<CvCapture_OpenNI2 *>(this)->device.getDepthColorSyncEnabled();
case CV_CAP_PROP_OPENNI2_MIRROR: case CV_CAP_PROP_OPENNI2_MIRROR:
{ {
bool isMirroring = color.getMirroringEnabled() && depth.getMirroringEnabled(); bool isMirroring = color.getMirroringEnabled() && depth.getMirroringEnabled();