X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fcore%2Futil%2FVariable.cpp;h=9f45178ce009e1497178f1bf751cf70e4ae32a69;hb=ad7fdc865803176f1dd1696960073f616cfa3fda;hp=d4388686bd85bc18eaafdc1325b02907071ef12f;hpb=39033fd99e58e994a5e98c1060dcc79e0d81f9c9;p=anna.git diff --git a/source/core/util/Variable.cpp b/source/core/util/Variable.cpp index d438868..9f45178 100644 --- a/source/core/util/Variable.cpp +++ b/source/core/util/Variable.cpp @@ -60,6 +60,7 @@ Variable::Variable(const char* name, const Type::_v type) : case Type::Float: a_value.a_float = &a_aux.theFloat; break; case Type::Double: a_value.a_double = &a_aux.theDouble; break; case Type::Custom: a_value.a_custom = NULL; break; + default: break; } } @@ -76,6 +77,7 @@ Variable::~Variable() { delete a_value.a_dataBlock; a_value.a_dataBlock = NULL; break; + default: break; } } @@ -171,6 +173,7 @@ throw(RuntimeException) { switch(a_type) { case Type::Integer: result = *a_value.a_integer; break; case Type::Integer64: result = *a_value.a_longInteger; break; + default: break; } return result; @@ -199,6 +202,7 @@ throw(RuntimeException) { switch(a_type) { case Type::Float: result = *a_value.a_float; break; case Type::Double: result = (float) *a_value.a_double; break; + default: break; } return result; @@ -213,6 +217,7 @@ throw(RuntimeException) { switch(a_type) { case Type::Float: result = (double) *a_value.a_float; break; case Type::Double: result = *a_value.a_double; break; + default: break; } return result; @@ -237,6 +242,7 @@ throw() { case Type::Float: result += functions::asString("%f", *a_value.a_float); break; case Type::Double: result += functions::asString("%g", *a_value.a_double); break; case Type::Custom: result += functions::asHexString(anna_ptrnumber_cast(a_value.a_custom)); break; + default: break; } } @@ -256,6 +262,7 @@ throw() { case Type::Float: result = a_value.a_float; break; case Type::Double: result = a_value.a_double; break; case Type::Custom: result = a_value.a_custom; break; + default: break; } return result; @@ -274,6 +281,7 @@ throw() { case Type::Float: result = a_value.a_float; break; case Type::Double: result = a_value.a_double; break; case Type::Custom: result = a_value.a_custom; break; + default: break; } return result;