Commit 2d16026d authored by Joe Howse's avatar Joe Howse

more const correctness in OpenNI2 getProperty

parent b7a3204c
...@@ -466,7 +466,7 @@ double CvCapture_OpenNI2::getCommonProperty( int propIdx ) const ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment