mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
implement move constructor
This commit is contained in:
parent
8958e29187
commit
a16727d5e3
3 changed files with 8 additions and 1 deletions
|
@ -72,6 +72,11 @@ namespace Compiler
|
|||
|
||||
ContextRestore::ContextRestore(StreamErrorHandler* handler, const std::string& context) : mHandler(handler), mContext(context) {}
|
||||
|
||||
ContextRestore::ContextRestore(ContextRestore&& other) : mHandler(other.mHandler), mContext(other.mContext)
|
||||
{
|
||||
other.mHandler = nullptr;
|
||||
}
|
||||
|
||||
ContextRestore::~ContextRestore()
|
||||
{
|
||||
if(mHandler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue