From 26f9534544f7c2a1c7549af8b060ade15079d470 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 23 Oct 2012 15:24:21 +0400 Subject: [PATCH] fixed string->string conversion --- modules/core/src/command_line_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/command_line_parser.cpp b/modules/core/src/command_line_parser.cpp index 5de83901fd..dc15356de6 100644 --- a/modules/core/src/command_line_parser.cpp +++ b/modules/core/src/command_line_parser.cpp @@ -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__);