Fixed compilation errors.
authorRoman Donchenko <roman.donchenko@itseez.com>
Tue, 6 Aug 2013 13:06:13 +0000 (17:06 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Tue, 6 Aug 2013 14:07:08 +0000 (18:07 +0400)
modules/contrib/src/inputoutput.cpp
modules/java/generator/src/cpp/Mat.cpp

index 9edf6a0..d0e947b 100644 (file)
@@ -56,9 +56,9 @@ namespace cv
                         fname = FindFileData.cFileName;
                     #endif
                         if (addPath)
-                            list.push_back(path + "/" + std::string(fname));
+                            list.push_back(path + "/" + String(fname));
                         else
-                            list.push_back(std::string(fname));
+                            list.push_back(String(fname));
                     }
                 }
             #ifdef HAVE_WINRT
@@ -145,9 +145,9 @@ namespace cv
                     #endif
 
                         if (addPath)
-                            list.push_back(path + "/" + std::string(fname));
+                            list.push_back(path + "/" + String(fname));
                         else
-                            list.push_back(std::string(fname));
+                            list.push_back(String(fname));
                     }
                 }
             #ifdef HAVE_WINRT
index bc5b87f..b3b0f66 100644 (file)
@@ -1,6 +1,7 @@
 #define LOG_TAG "org.opencv.core.Mat"
 
 #include <stdexcept>
+#include <string>
 
 #include "common.h"
 #include "opencv2/core.hpp"