aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-06-16 07:49:36 +0000
committerGravatar Vijay Pai <vpai@google.com>2016-06-16 07:49:36 +0000
commit6b668cc93f4158f6074488d32ed2bb2c20079450 (patch)
tree61026f5975f4d1536106a1e5f6d14f8960c17a34 /test/cpp
parent4e1a883a5f3a0e5eea104a27d8e3ec93874fedf5 (diff)
Remove range-based for, comparisons to nullptr
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/util/proto_reflection_descriptor_database.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/util/proto_reflection_descriptor_database.cc b/test/cpp/util/proto_reflection_descriptor_database.cc
index 6907d97bd5..25b720aee0 100644
--- a/test/cpp/util/proto_reflection_descriptor_database.cc
+++ b/test/cpp/util/proto_reflection_descriptor_database.cc
@@ -298,7 +298,7 @@ void ProtoReflectionDescriptorDatabase::AddFileFromResponse(
const std::shared_ptr<ProtoReflectionDescriptorDatabase::ClientStream>
ProtoReflectionDescriptorDatabase::GetStream() {
- if (stream_ == nullptr) {
+ if (!stream_) {
stream_ = stub_->ServerReflectionInfo(&ctx_);
}
return stream_;