Fix: Windows compilation error in CommandLineParser.
authorLeonid Beynenson <Leonid.Beynenson@itseez.com>
Thu, 20 Sep 2012 14:11:33 +0000 (18:11 +0400)
committerLeonid Beynenson <Leonid.Beynenson@itseez.com>
Thu, 20 Sep 2012 14:11:33 +0000 (18:11 +0400)
modules/core/src/command_line_parser.cpp

index 8f998ab..840bf81 100644 (file)
@@ -72,14 +72,14 @@ static void from_str(const string& str, int type, void* dst)
     else if( type == Param::STRING )\r
         ss >> *(string*)dst;\r
     else\r
-        throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", __func__, __FILE__, __LINE__);\r
+        throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);\r
     \r
     if (ss.fail())\r
     {\r
         string err_msg = "can not convert: [" + str +\r
         + "] to [" + get_type_name(type) + "]";\r
         \r
-        throw cv::Exception(CV_StsBadArg, err_msg, __func__, __FILE__, __LINE__);\r
+        throw cv::Exception(CV_StsBadArg, err_msg, "", __FILE__, __LINE__);\r
     }\r
 }\r
 \r
@@ -425,7 +425,7 @@ vector<string> CommandLineParser::Impl::split_range_string(const string& _str, c
                          + string(", ")\r
                          + string(1, ss)\r
                          + string(")"),\r
-                         __func__, __FILE__, __LINE__\r
+                         "", __FILE__, __LINE__\r
                          );\r
             }\r
             begin = true;\r
@@ -445,7 +445,7 @@ vector<string> CommandLineParser::Impl::split_range_string(const string& _str, c
                          + string(", ")\r
                          + string(1, ss)\r
                          + string(")"),\r
-                         __func__, __FILE__, __LINE__\r
+                         "", __FILE__, __LINE__\r
                          );\r
             }\r
             begin = false;\r
@@ -469,7 +469,7 @@ vector<string> CommandLineParser::Impl::split_range_string(const string& _str, c
                  + string(", ")\r
                  + string(1, ss)\r
                  + string(")"),\r
-                 __func__, __FILE__, __LINE__\r
+                 "", __FILE__, __LINE__\r
                 );\r
     }\r
 \r