summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-30 20:21:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-09-30 20:21:00 +0300
commitd31328a7ea6e180fa534155d7e0b1730784f5410 (patch)
tree8753a404993079b86e3c71aba94efaf0dbac686b /src
parentc67e7825ccd72b889b6b8448d17e206c88bb21ca (diff)
shitty C++ doesn't work without this operator
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/binbuffer.cpp7
-rw-r--r--src/mir_core/src/mir_core.def2
-rw-r--r--src/mir_core/src/mir_core64.def2
3 files changed, 9 insertions, 2 deletions
diff --git a/src/mir_core/src/binbuffer.cpp b/src/mir_core/src/binbuffer.cpp
index d558dcc7b7..3b961b489b 100644
--- a/src/mir_core/src/binbuffer.cpp
+++ b/src/mir_core/src/binbuffer.cpp
@@ -89,6 +89,13 @@ MBinBuffer::MBinBuffer(size_t preAlloc)
m_buf = (char*)(p + 1);
}
+MBinBuffer& MBinBuffer::operator=(MBinBuffer &&from) noexcept
+{
+ m_buf = from.m_buf;
+ from.m_buf = nullptr;
+ return *this;
+}
+
MBinBuffer::~MBinBuffer()
{
ptr2buf(m_buf)->free();
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index 012cd74908..3fd76a31e3 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -991,7 +991,7 @@ CallFunctionSync @1170
?RemovePage@CCtrlPages@@QAEXH@Z @1205 NONAME
??0MBinBuffer@@QAE@XZ @1206 NONAME
??1MBinBuffer@@QAE@XZ @1207 NONAME
-??4MBinBuffer@@QAEAAV0@ABV0@@Z @1208 NONAME
+??4MBinBuffer@@QAEAAV0@$$QAV0@@Z @1208 NONAME
?append@MBinBuffer@@QAEXPBXI@Z @1209 NONAME
?appendBefore@MBinBuffer@@QAEXPBXI@Z @1210 NONAME
?data@MBinBuffer@@QBEPADXZ @1211 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index b2e8cf77de..d99deff994 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -991,7 +991,7 @@ CallFunctionSync @1170
?RemovePage@CCtrlPages@@QEAAXH@Z @1205 NONAME
??0MBinBuffer@@QEAA@XZ @1206 NONAME
??1MBinBuffer@@QEAA@XZ @1207 NONAME
-??4MBinBuffer@@QEAAAEAV0@AEBV0@@Z @1208 NONAME
+??4MBinBuffer@@QEAAAEAV0@$$QEAV0@@Z @1208 NONAME
?append@MBinBuffer@@QEAAXPEBX_K@Z @1209 NONAME
?appendBefore@MBinBuffer@@QEAAXPEBX_K@Z @1210 NONAME
?data@MBinBuffer@@QEBAPEADXZ @1211 NONAME