Use nested namespaces (C++17 feature)

This commit is contained in:
Mat Sutcliffe
2021-09-15 21:44:54 +01:00
parent 3f2e5b0b69
commit 57d32da826
1345 changed files with 146075 additions and 150376 deletions

View File

@@ -8,29 +8,26 @@
#include "rawfsdmessagelist.h"
namespace BlackMisc
namespace BlackMisc::Network
{
namespace Network
CRawFsdMessageList::CRawFsdMessageList() { }
CRawFsdMessageList::CRawFsdMessageList(const CSequence &other) : CSequence<CRawFsdMessage>(other)
{ }
CRawFsdMessageList CRawFsdMessageList::findByPacketType(const QString &type) const
{
CRawFsdMessageList::CRawFsdMessageList() { }
CRawFsdMessageList::CRawFsdMessageList(const CSequence &other) : CSequence<CRawFsdMessage>(other)
{ }
CRawFsdMessageList CRawFsdMessageList::findByPacketType(const QString &type) const
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)
{
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)
{
return rawFsdMessage.isPacketType(type);
});
}
return rawFsdMessage.isPacketType(type);
});
}
CRawFsdMessageList CRawFsdMessageList::findByContainsString(const QString &str) const
CRawFsdMessageList CRawFsdMessageList::findByContainsString(const QString &str) const
{
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)
{
return this->findBy([ & ](const CRawFsdMessage &rawFsdMessage)
{
return rawFsdMessage.containsString(str);
});
}
} // namespace
return rawFsdMessage.containsString(str);
});
}
} // namespace