fixed all Viz warnings

moved some headers to precomp.hpp
This commit is contained in:
Anatoly Baksheev
2013-11-16 21:27:03 +04:00
parent 5c6248005a
commit d8600d3d13
7 changed files with 31 additions and 27 deletions

View File

@@ -105,7 +105,9 @@ public:
context(_context), depthGenerator(_depthGenerator), imageGenerator(_imageGenerator),
maxBufferSize(_maxBufferSize), isCircleBuffer(_isCircleBuffer), maxTimeDuration(_maxTimeDuration)
{
#ifdef HAVE_TBB
task = 0;
#endif
CV_Assert( depthGenerator.IsValid() );
CV_Assert( imageGenerator.IsValid() );
@@ -150,7 +152,7 @@ public:
task = new( tbb::task::allocate_root() ) TBBApproximateSynchronizerTask( *this );
tbb::task::enqueue(*task);
#else
task = new ApproximateSynchronizer( *this );
task->reset( new ApproximateSynchronizer( *this ) );
#endif
}