more const correctness in OpenNI2 getProperty

pull/3550/head
Joe Howse 10 years ago
parent b7a3204c57
commit 2d16026df6
  1. 2
      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<CvCapture_OpenNI2 *>(this)->device.getDepthColorSyncEnabled();
case CV_CAP_PROP_OPENNI2_MIRROR:
{
bool isMirroring = color.getMirroringEnabled() && depth.getMirroringEnabled();

Loading…
Cancel
Save