summaryrefslogtreecommitdiff
path: root/src/core/script/Variant.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-10-24 13:25:04 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-10-24 13:25:04 +0000
commit4a9912f516bf096c6f8c6259b3fc6ba4b95b8d69 (patch)
treee4b578c76e27ade40de5d2cae2efbd2b17d18e59 /src/core/script/Variant.cpp
parentc654793a3a513a9c8ffcd1aa9c3962b6a72e61bd (diff)
finished implementation of HostFunction
git-svn-id: file:///var/local/svn/basicwriter@74 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/core/script/Variant.cpp')
-rw-r--r--src/core/script/Variant.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/script/Variant.cpp b/src/core/script/Variant.cpp
index b70f361..3858b68 100644
--- a/src/core/script/Variant.cpp
+++ b/src/core/script/Variant.cpp
@@ -23,7 +23,7 @@ namespace script {
/* Class VariantTypeException */
-static const char* getVariantTypeName(VariantType type)
+const char* Variant::getTypeName(VariantType type)
{
switch (type) {
case VariantType::null:
@@ -53,8 +53,9 @@ static const char* getVariantTypeName(VariantType type)
VariantTypeException::VariantTypeException(VariantType actualType,
VariantType requestedType) :
msg(std::string("Cannot get value of variant of type \"")
- + getVariantTypeName(actualType)
- + std::string("\" as \"") + getVariantTypeName(requestedType)),
+ + Variant::getTypeName(actualType)
+ + std::string("\" as \"") + Variant::getTypeName(requestedType)
+ + std::string("\"")),
actualType(actualType), requestedType(requestedType) {}
const char* VariantTypeException::what() const noexcept