diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2016-02-16 16:47:46 -0800 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2016-02-16 16:47:46 -0800 |
commit | d41db75dcbbad0a7c3af5fb9f3b071cf6084243d (patch) | |
tree | df579dfcd102a17cbf44063dff51f469fe4e2f15 /src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc | |
parent | 8fc045d8d29732adfad986900363e907fd0f7e8f (diff) | |
parent | 914605c4dcf7b920ddeb4f66dc0229fa9ac4e709 (diff) |
Merge pull request #260 from ejsd1989/issue-#242
Removes redundant null pointer checks checks
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc b/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc index c3e9fe74..47729e1c 100644 --- a/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc +++ b/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc @@ -107,7 +107,7 @@ class MockGeneratorContext : public GeneratorContext { virtual io::ZeroCopyOutputStream* Open(const string& filename) { string** map_slot = &files_[filename]; - if (*map_slot != NULL) delete *map_slot; + delete *map_slot; *map_slot = new string; return new io::StringOutputStream(*map_slot); |