diff --git a/src/canonmn_int.cpp b/src/canonmn_int.cpp index 01db3baf04..e0aac23576 100644 --- a/src/canonmn_int.cpp +++ b/src/canonmn_int.cpp @@ -2893,7 +2893,7 @@ float string_to_float(std::string const& str) { ss >> val; if (ss.fail()) { - throw Error(ErrorCode::kerErrorMessage, std::string("canonmn_int.cpp:string_to_float failed for: ") + str); + throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str); } return val; diff --git a/src/sonymn_int.cpp b/src/sonymn_int.cpp index 99a3ccae4e..07e09cb7a5 100644 --- a/src/sonymn_int.cpp +++ b/src/sonymn_int.cpp @@ -1332,8 +1332,7 @@ static void findLensSpecFlags(const Value& value, std::string& flagsStart, std:: } // Should never get in here. LensSpecFlags.mask should contain all the // bits in all the LensSpecFlags.flags.val_ entries - throw Error(ErrorCode::kerErrorMessage, - std::string("LensSpecFlags mask doesn't match the bits in the flags array")); + throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array"); } } }