summaryrefslogtreecommitdiff
path: root/compiler/cpp/src/thrift/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cpp/src/thrift/main.cc')
-rw-r--r--compiler/cpp/src/thrift/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/src/thrift/main.cc b/compiler/cpp/src/thrift/main.cc
index a07f4295a..485ec0022 100644
--- a/compiler/cpp/src/thrift/main.cc
+++ b/compiler/cpp/src/thrift/main.cc
@@ -742,7 +742,7 @@ void validate_const_rec(std::string name, t_type* type, t_const_value* value) {
if (value->get_type() != t_const_value::CV_STRING) {
throw "type error: const \"" + name + "\" was declared as uuid";
}
- value->get_uuid(); // validates constant
+ value->set_uuid(value->get_uuid()); // validates constant
break;
case t_base_type::TYPE_BOOL:
if (value->get_type() != t_const_value::CV_INTEGER) {