diff options
Diffstat (limited to 'Sluift/ElementConvertors/IQConvertor.cpp')
| -rw-r--r-- | Sluift/ElementConvertors/IQConvertor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Sluift/ElementConvertors/IQConvertor.cpp b/Sluift/ElementConvertors/IQConvertor.cpp index 8a8e463..d90c864 100644 --- a/Sluift/ElementConvertors/IQConvertor.cpp +++ b/Sluift/ElementConvertors/IQConvertor.cpp @@ -51,18 +51,20 @@ boost::optional<LuaElementConvertor::Documentation> IQConvertor::getDocumentatio } std::string IQConvertor::convertIQTypeToString(IQ::Type type) { switch (type) { case IQ::Get: return "get"; case IQ::Set: return "set"; case IQ::Result: return "result"; case IQ::Error: return "error"; } + assert(false); + return ""; } IQ::Type IQConvertor::convertIQTypeFromString(const std::string& type) { if (type == "get") { return IQ::Get; } else if (type == "set") { return IQ::Set; } |
Swift