mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Added with() and withValidation() methods in CLogCategoryList.
This commit is contained in:
@@ -27,7 +27,7 @@ namespace BlackMisc
|
||||
|
||||
CStatusMessageList CVoiceSetup::validate() const
|
||||
{
|
||||
static const CLogCategoryList cats(CLogCategoryList(this).join({ CLogCategory::validation()}));
|
||||
static const CLogCategoryList cats(CLogCategoryList(this).withValidation());
|
||||
CStatusMessageList msgs;
|
||||
if (this->getVatsimUdpVoicePort() < 1 || this->getVatsimUdpVoicePort() > 65535) { msgs.push_back(CStatusMessage(CStatusMessage::SeverityError, u"Invalid voice port")); }
|
||||
msgs.addCategories(cats);
|
||||
|
||||
Reference in New Issue
Block a user