Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8c8e368

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
deps: update googletest to 4b21f1a
PR-URL:#53842Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent78f6b34 commit8c8e368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎deps/googletest/include/gtest/internal/gtest-type-util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ inline std::string CanonicalizeForStdLibVersioning(std::string s) {
7171
// Strip redundant spaces in typename to match MSVC
7272
// For example, std::pair<int, bool> -> std::pair<int,bool>
7373
staticconstchar to_search[] =",";
74-
staticconstcharreplace_str[] =",";
74+
constcharreplace_char =',';
7575
size_t pos =0;
7676
while (true) {
7777
// Get the next occurrence from the current position
@@ -80,8 +80,8 @@ inline std::string CanonicalizeForStdLibVersioning(std::string s) {
8080
break;
8181
}
8282
// Replace this occurrence of substring
83-
s.replace(pos,strlen(to_search),replace_str);
84-
pos +=strlen(replace_str);
83+
s.replace(pos,strlen(to_search),1, replace_char);
84+
++pos;
8585
}
8686
return s;
8787
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp