Skip to content

Commit 66c3cda

Browse files
committed
remove std::string from Error()
Not needed. Signed-off-by: Rosen Penev <[email protected]>
1 parent bf95347 commit 66c3cda

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/canonmn_int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ float string_to_float(std::string const& str) {
28932893
ss >> val;
28942894

28952895
if (ss.fail()) {
2896-
throw Error(ErrorCode::kerErrorMessage, std::string("canonmn_int.cpp:string_to_float failed for: ") + str);
2896+
throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str);
28972897
}
28982898

28992899
return val;

src/sonymn_int.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,8 +1332,7 @@ static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::
13321332
}
13331333
// Should never get in here. LensSpecFlags.mask should contain all the
13341334
// bits in all the LensSpecFlags.flags.val_ entries
1335-
throw Error(ErrorCode::kerErrorMessage,
1336-
std::string("LensSpecFlags mask doesn't match the bits in the flags array"));
1335+
throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
13371336
}
13381337
}
13391338
}

0 commit comments

Comments
 (0)