refs #452, MS review

https://dev.vatsim-germany.org/issues/452#note-5
This commit is contained in:
Klaus Basan
2015-09-28 22:46:42 +02:00
committed by Mathew Sutcliffe
parent e033cfacfd
commit 3ed2068ff5
11 changed files with 20 additions and 19 deletions

View File

@@ -218,7 +218,7 @@ namespace BlackMisc
CStatusMessageList CAircraftModel::validate(bool withNestedObjects) const
{
static const CLogCategoryList cats( { CLogCategory(this->getClassName()), CLogCategory::validation()});
static const CLogCategoryList cats(CLogCategoryList(this).join({ CLogCategory::validation() }));
CStatusMessageList msgs;
if (!hasModelString()) { msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, "Model: missing model string (aka key)")); }
if (!hasValidSimulator()) {msgs.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, "Model: no simulator set")); }