Skip to content

Commit

Permalink
Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored Jan 20, 2024
1 parent fac673b commit 1b1f2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/mock_code_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static constexpr absl::string_view kSecondInsertionPoint =
" # @@protoc_insertion_point(second_mock_insertion_point) is here\n";

MockCodeGenerator::MockCodeGenerator(absl::string_view name) : name_(name) {
char* c_key = getenv("TEST_CASE");
const char* c_key = getenv("TEST_CASE");
if (c_key == NULL) {
// In Windows, setting 'TEST_CASE=' is equivalent to unsetting
// and therefore c_key can be NULL
Expand Down

0 comments on commit 1b1f2cc

Please sign in to comment.