1#include <base/system.h>
2
3#include <engine/warning.h>
4
5SWarning::SWarning(const SWarning &Other)
6{
7 str_copy(dst&: m_aWarningTitle, src: Other.m_aWarningTitle);
8 str_copy(dst&: m_aWarningMsg, src: Other.m_aWarningMsg);
9 m_AutoHide = Other.m_AutoHide;
10}
11
12SWarning::SWarning(const char *pMsg)
13{
14 str_copy(dst&: m_aWarningMsg, src: pMsg);
15}
16
17SWarning::SWarning(const char *pTitle, const char *pMsg)
18{
19 str_copy(dst&: m_aWarningTitle, src: pTitle);
20 str_copy(dst&: m_aWarningMsg, src: pMsg);
21}
22
23SWarning &SWarning::operator=(const SWarning &Other)
24{
25 str_copy(dst&: m_aWarningTitle, src: Other.m_aWarningTitle);
26 str_copy(dst&: m_aWarningMsg, src: Other.m_aWarningMsg);
27 m_AutoHide = Other.m_AutoHide;
28 return *this;
29}
30