win: ceftests: Fix type conversion error (see #3664)

This commit is contained in:
Marshall Greenblatt 2024-12-12 12:03:28 -05:00
parent 7dd2398be2
commit 5b14f11996

View File

@ -1519,7 +1519,7 @@ class CrossOriginOrderSubTestHandler : public OrderSubTestHandler {
private: private:
// Parse the format from frame_util::MakeFrameIdentifier to return |child_id|. // Parse the format from frame_util::MakeFrameIdentifier to return |child_id|.
static std::string ExtractChildId(const std::string& frame_id) { static std::string ExtractChildId(const std::string& frame_id) {
const int pos = frame_id.find('-'); const auto pos = frame_id.find('-');
CHECK_GT(pos, 0) << frame_id; CHECK_GT(pos, 0) << frame_id;
return frame_id.substr(0, pos); return frame_id.substr(0, pos);
} }