File opencv-deprecated_conversion.patch of Package opencv

--- cvaux/include/cvvidsurv.hpp
+++ cvaux/include/cvvidsurv.hpp
@@ -46,7 +46,13 @@
 /* turn off the functionality until cvaux/src/Makefile.am gets updated */
 //#if _MSC_VER >= 1200

+#ifdef _MSC_VER
 #include <stdio.h>
+#else
+#include <cstdio>
+#endif
+
+#include <string>

 #if _MSC_VER >= 1200 || defined __BORLANDC__
 #define cv_stricmp stricmp
@@ -505,10 +511,10 @@
     };
     virtual void Write(CvFileStorage* fs, char* name)
     {
-        char*  attr[] = {"dt",m_pElemFormat,NULL};
+        const char* attr[] = {"dt",m_pElemFormat,NULL};
         if(fs)
         {
-            cvWrite(fs,name,m_pSeq,cvAttrList((const char**)attr,NULL));
+            cvWrite(fs,name,m_pSeq,cvAttrList(attr,NULL));
         }
     }
     virtual void Load(CvFileStorage* fs, CvFileNode* node)
openSUSE Build Service is sponsored by