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

@@ -98,7 +98,7 @@ namespace BlackMisc
CStatusMessageList CLivery::validate() const
{
static const CLogCategoryList cats( { CLogCategory(this->getClassName()), CLogCategory::validation()});
static const CLogCategoryList cats(CLogCategoryList(this).join({ CLogCategory::validation() }));
CStatusMessageList msg;
if (!hasCombinedCode()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, "Livery: missing livery code")); }
if (!hasColorFuselage()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityWarning, "Livery: no fuselage color")); }