aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc
diff options
context:
space:
mode:
authorGravatar Joshua Haberman <jhaberman@gmail.com>2016-02-16 16:47:46 -0800
committerGravatar Joshua Haberman <jhaberman@gmail.com>2016-02-16 16:47:46 -0800
commitd41db75dcbbad0a7c3af5fb9f3b071cf6084243d (patch)
treedf579dfcd102a17cbf44063dff51f469fe4e2f15 /src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc
parent8fc045d8d29732adfad986900363e907fd0f7e8f (diff)
parent914605c4dcf7b920ddeb4f66dc0229fa9ac4e709 (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.cc2
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);