fixed string->string conversion
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 23 Oct 2012 11:24:21 +0000 (15:24 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 23 Oct 2012 11:24:21 +0000 (15:24 +0400)
modules/core/src/command_line_parser.cpp

index 5de8390..dc15356 100644 (file)
@@ -70,7 +70,7 @@ static void from_str(const string& str, int type, void* dst)
     else if( type == Param::REAL )
         ss >> *(double*)dst;
     else if( type == Param::STRING )
-        ss >> *(string*)dst;
+        *(string*)dst = str;
     else
         throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);