Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 538 by [email protected]:
Strange ::google::protobuf::::google::protobuf::GoogleOnceInit in
src/google/protobuf/compiler/cpp/cpp_file.cc
http://code.google.com/p/protobuf/issues/detail?id=538
r425 added the following line to cpp_file.cc:
=======================================
@@ -594,7 +619,7 @@
// Without.
"GOOGLE_PROTOBUF_DECLARE_ONCE($adddescriptorsname$_once_);\n"
"void $adddescriptorsname$() {\n"
- " ::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
+ "
::google::protobuf::::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
" &$adddescriptorsname$_impl);\n"
"}\n",
// Vars.
=======================================
Looks like a typo.
The following patch should fix the issue:
Index: src/google/protobuf/compiler/cpp/cpp_file.cc
===================================================================
--- src/google/protobuf/compiler/cpp/cpp_file.cc (revision 504)
+++ src/google/protobuf/compiler/cpp/cpp_file.cc (working copy)
@@ -620,7 +620,7 @@
// Without.
"GOOGLE_PROTOBUF_DECLARE_ONCE($adddescriptorsname$_once_);\n"
"void $adddescriptorsname$() {\n"
- "
::google::protobuf::::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
+ " ::google::protobuf::GoogleOnceInit(&$adddescriptorsname$_once_,\n"
" &$adddescriptorsname$_impl);\n"
"}\n",
// Vars.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.