refactor: using references where possible

This commit is contained in:
2025-04-08 01:07:08 +02:00
parent d1f582e6ba
commit b4277e9261
3 changed files with 164 additions and 200 deletions
+2
View File
@@ -156,6 +156,8 @@ class SPIT_Message {
return m_OPPart->getHeader()->getOPFlag();
}
const OPPart *getOPPart() const { return m_OPPart.get(); }
template<typename T>
T &getOPPartAs() const { return *reinterpret_cast<T *>(m_OPPart.get()); }
private:
bool parse(std::vector<char> message);