Skip to content

Commit

Permalink
Use the empty method to check for emptiness
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 526046714
Change-Id: I6ad0deff2a7f6dfef75a643c95ad914c83b9ba38
  • Loading branch information
thughes authored and copybara-github committed Apr 21, 2023
1 parent a5308bb commit baf182e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion googlemock/test/gmock_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ TEST(WideInitGoogleMockTest, ParsesGoogleMockFlagAndUnrecognizedFlag) {
// Makes sure Google Mock flags can be accessed in code.
TEST(FlagTest, IsAccessibleInCode) {
bool dummy =
GMOCK_FLAG_GET(catch_leaked_mocks) && GMOCK_FLAG_GET(verbose) == "";
GMOCK_FLAG_GET(catch_leaked_mocks) && GMOCK_FLAG_GET(verbose).empty();
(void)dummy; // Avoids the "unused local variable" warning.
}

0 comments on commit baf182e

Please sign in to comment.