aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/cpp/cpp_service.cc
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nowhere>2015-01-27 15:44:38 +0000
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nowhere>2015-01-27 15:44:38 +0000
commitf01c1441bc7226bf10cf032b2b699a151020cd14 (patch)
tree2b5ef38a523bf528105675ad3b3ac2aebcde06b0 /src/google/protobuf/compiler/cpp/cpp_service.cc
parent5446deaea7ffc29f6e09368cb6238da083969123 (diff)
downloadprotobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.tar.gz
protobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.tar.bz2
protobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.zip
Fix illegal C++ use of reinterpret_cast<> to cast between nullptr_t and a pointer.
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_service.cc')
-rw-r--r--src/google/protobuf/compiler/cpp/cpp_service.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_service.cc b/src/google/protobuf/compiler/cpp/cpp_service.cc
index a8f303da..226c2aa0 100644
--- a/src/google/protobuf/compiler/cpp/cpp_service.cc
+++ b/src/google/protobuf/compiler/cpp/cpp_service.cc
@@ -301,7 +301,7 @@ void ServiceGenerator::GenerateGetPrototype(RequestOrResponse which,
printer->Print(vars_,
" default:\n"
" GOOGLE_LOG(FATAL) << \"Bad method index; this should never happen.\";\n"
- " return *reinterpret_cast< ::google::protobuf::Message*>(NULL);\n"
+ " return *static_cast< ::google::protobuf::Message*>(NULL);\n"
" }\n"
"}\n"
"\n");