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:
f49041c
)
No need to generate private __construct() function if the class is already final
author
Mark Slee
<mcslee@apache.org>
Tue, 23 Jan 2007 23:22:35 +0000
(23:22 +0000)
committer
Mark Slee
<mcslee@apache.org>
Tue, 23 Jan 2007 23:22:35 +0000
(23:22 +0000)
Reviewed By: lucas
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664935
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
092244e
..
cb11d48
100644
(file)
--- a/
compiler/cpp/src/generate/t_php_generator.cc
+++ b/
compiler/cpp/src/generate/t_php_generator.cc
@@
-110,10
+110,6
@@
void t_php_generator::generate_enum(t_enum* tenum) {
"const " << (*c_iter)->get_name() << " = " << value << ";" << endl;
}
- // Prevent instantiation of this class
- f_types_ <<
- indent() << "private function __construct() {}" << endl;
-
indent_down();
f_types_ << "}" << endl << endl;
}