|
@@ -107,7 +107,7 @@ class MockGeneratorContext : public GeneratorContext {
|
|
|
|
|
|
virtual io::ZeroCopyOutputStream* Open(const string& filename) {
|
|
virtual io::ZeroCopyOutputStream* Open(const string& filename) {
|
|
string** map_slot = &files_[filename];
|
|
string** map_slot = &files_[filename];
|
|
- if (*map_slot != NULL) delete *map_slot;
|
|
|
|
|
|
+ delete *map_slot;
|
|
*map_slot = new string;
|
|
*map_slot = new string;
|
|
|
|
|
|
return new io::StringOutputStream(*map_slot);
|
|
return new io::StringOutputStream(*map_slot);
|