Skip to content

Commit

Permalink
remove std::string from Error()
Browse files Browse the repository at this point in the history
Not needed.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Nov 21, 2024
1 parent bf95347 commit 66c3cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/canonmn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/sonymn_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}
Expand Down

0 comments on commit 66c3cda

Please sign in to comment.