Commit e7e72d24 authored by Maria Dimashova's avatar Maria Dimashova

fixed compile error (ubuntu64)

parent 83efef4b
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
//M*/ //M*/
#include "precomp.hpp" #include "precomp.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#ifdef HAVE_OPENNI #ifdef HAVE_OPENNI
...@@ -183,7 +184,7 @@ CvCapture_OpenNI::CvCapture_OpenNI() ...@@ -183,7 +184,7 @@ CvCapture_OpenNI::CvCapture_OpenNI()
// Write configuration to the temporary file. // Write configuration to the temporary file.
// This is a hack, because there is a bug in RunXmlScript(). // This is a hack, because there is a bug in RunXmlScript().
// TODO: remove hack when bug in RunXmlScript() will be fixed. // TODO: remove hack when bug in RunXmlScript() will be fixed.
string xmlFilename = tempfile(); std::string xmlFilename = cv::tempfile();
std::ofstream outfile( xmlFilename.c_str() ); std::ofstream outfile( xmlFilename.c_str() );
outfile.write( XMLConfig.c_str(), XMLConfig.length() ); outfile.write( XMLConfig.c_str(), XMLConfig.length() );
outfile.close(); outfile.close();
......
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