Added default case to AddressDecoder::CreateInstance.

This commit is contained in:
Johannes Feldmann
2018-04-03 11:43:40 +02:00
parent 42b5ad004e
commit 23648c6f60

View File

@@ -56,6 +56,9 @@ void AddressDecoder::createInstance(Type t)
case Type::JSON:
m_pInstance = new JSONAddressDecoder;
break;
default:
throw std::logic_error("Instance type not supported.");
break;
}
}