Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
814818e
)
THRIFT-1686 t_php_generator.cc uses "and" instead of "&&", and causes compiler errors...
author
Roger Meier
<roger@apache.org>
Thu, 6 Sep 2012 17:59:55 +0000
(17:59 +0000)
committer
Roger Meier
<roger@apache.org>
Thu, 6 Sep 2012 17:59:55 +0000
(17:59 +0000)
Patch: Ben Craig
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1381696
13f79535
-47bb-0310-9956-
ffa450edef68
compiler/cpp/src/generate/t_php_generator.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_php_generator.cc
b/compiler/cpp/src/generate/t_php_generator.cc
index
74c3af3
..
d728fbf
100644
(file)
--- a/
compiler/cpp/src/generate/t_php_generator.cc
+++ b/
compiler/cpp/src/generate/t_php_generator.cc
@@
-2274,7
+2274,7
@@
string t_php_generator::argument_list(t_struct* tstruct, bool addStructSignature
t_type* type = (*f_iter)->get_type();
//Set type name
- if(addStructSignature
and
type->is_struct())
+ if(addStructSignature
&&
type->is_struct())
{
string className = php_namespace(type->get_program()) + php_namespace_directory("Definition", false) + classify(type->get_name());