Commit 63b90986 authored by Norby, Tom's avatar Norby, Tom

Formatting - note extraneous ; on some radix_not_implemented() macros.

parent 1be8397e
Pipeline #95670 passed with stages
in 22 minutes and 31 seconds
......@@ -276,9 +276,9 @@ int Value::to_int() const
radix_not_implemented("conversion of array to integer");
case TYPE_OBJECT:
radix_not_implemented("conversion of object to integer");
radix_not_implemented("conversion of object to integer")
}
radix_not_implemented("unknown type conversion to integer");
radix_not_implemented("unknown type conversion to integer")
}
double Value::to_double() const
{
......@@ -305,9 +305,9 @@ double Value::to_double() const
radix_not_implemented("conversion of array to double");
case TYPE_OBJECT:
radix_not_implemented("conversion of object to double");
radix_not_implemented("conversion of object to double")
}
radix_not_implemented("unknown type conversion to double");
radix_not_implemented("unknown type conversion to double")
}
bool Value::to_bool() const
{
......@@ -326,13 +326,13 @@ bool Value::to_bool() const
return m_data.m_double ? true : false;
case TYPE_STRING:
radix_not_implemented("conversion of string to boolean")
radix_not_implemented("conversion of string to boolean");
case TYPE_ARRAY
: radix_not_implemented("conversion of array to double")
case TYPE_ARRAY:
radix_not_implemented("conversion of array to double");
case TYPE_OBJECT
: radix_not_implemented("conversion of object to double")
case TYPE_OBJECT:
radix_not_implemented("conversion of object to double")
}
radix_not_implemented("unknown type conversion to bool")
}
......@@ -350,10 +350,10 @@ const char* Value::to_cstring() const
return m_data.m_string;
case TYPE_ARRAY:
radix_not_implemented("conversion of array to cstring")
radix_not_implemented("conversion of array to cstring");
case TYPE_OBJECT
: radix_not_implemented("conversion of object to cstring")
case TYPE_OBJECT:
radix_not_implemented("conversion of object to cstring")
}
radix_not_implemented("unknown type conversion to cstring")
}
......@@ -374,9 +374,10 @@ std::string Value::to_string() const
return m_data.m_string;
case TYPE_ARRAY:
radix_not_implemented("conversion of array to string")
radix_not_implemented("conversion of array to string");
case TYPE_OBJECT : std::stringstream str;
case TYPE_OBJECT:
std::stringstream str;
to_object()->pack_json(str);
return str.str();
}
......@@ -529,7 +530,7 @@ bool Value::format_json(std::ostream& out, int indent_level, int level) const
out << "null";
break;
default:
radix_not_implemented("unknown Object value type json emission");
radix_not_implemented("unknown Object value type json emission")
}
}
return out.good();
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment