From 8506ce06c19ce0005452f1efc887886d6894eb44 Mon Sep 17 00:00:00 2001 From: Sam Bromley Date: Thu, 26 Jul 2012 12:46:51 -0230 Subject: [PATCH] Fix missing remainder of line. --- modules/highgui/src/cap_openni.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/highgui/src/cap_openni.cpp b/modules/highgui/src/cap_openni.cpp index a95f2fd046..75aed56dce 100644 --- a/modules/highgui/src/cap_openni.cpp +++ b/modules/highgui/src/cap_openni.cpp @@ -44,7 +44,7 @@ #ifdef HAVE_OPENNI -#if TBB_INTERFACE_VERSION < 5000 +#if defined TBB_INTERFACE_VERSION && TBB_INTERFACE_VERSION < 5000 # undef HAVE_TBB #endif @@ -578,8 +578,8 @@ CvCapture_OpenNI::CvCapture_OpenNI( int index ) for( int i = 0; i < index && it!=devicesList.End(); ++i ) it++; if ( it == devicesList.End() ) { - std::cerr << "CvCapture_OpenNI::CvCapture_OpenNI : Faile - return; + std::cerr << "CvCapture_OpenNI::CvCapture_OpenNI : Failed device with index " << index << std::endl; + return; } xn::NodeInfo deviceNode = *it;