mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 20:20:20 +08:00
fixed string->string conversion
This commit is contained in:
parent
1cb21d292b
commit
26f9534544
@ -70,7 +70,7 @@ static void from_str(const string& str, int type, void* dst)
|
|||||||
else if( type == Param::REAL )
|
else if( type == Param::REAL )
|
||||||
ss >> *(double*)dst;
|
ss >> *(double*)dst;
|
||||||
else if( type == Param::STRING )
|
else if( type == Param::STRING )
|
||||||
ss >> *(string*)dst;
|
*(string*)dst = str;
|
||||||
else
|
else
|
||||||
throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);
|
throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user