Skip to content

Commit 1b1f2cc

Browse files
authored
Add const
1 parent fac673b commit 1b1f2cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/protobuf/compiler/mock_code_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static constexpr absl::string_view kSecondInsertionPoint =
7272
" # @@protoc_insertion_point(second_mock_insertion_point) is here\n";
7373

7474
MockCodeGenerator::MockCodeGenerator(absl::string_view name) : name_(name) {
75-
char* c_key = getenv("TEST_CASE");
75+
const char* c_key = getenv("TEST_CASE");
7676
if (c_key == NULL) {
7777
// In Windows, setting 'TEST_CASE=' is equivalent to unsetting
7878
// and therefore c_key can be NULL

0 commit comments

Comments
 (0)