mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-11 13:06:56 +03:00
Reduce copying further by adding move constructors and move assignment operators to CellRef structs.
This commit is contained in:
parent
23e7e3c165
commit
19af94b73e
5 changed files with 99 additions and 2 deletions
|
@ -109,6 +109,15 @@ namespace ESM
|
|||
void save (ESMWriter &esm, bool wideRefNum = false, bool inInventory = false, bool isDeleted = false) const;
|
||||
|
||||
void blank();
|
||||
|
||||
CellRef();
|
||||
~CellRef() = default;
|
||||
|
||||
CellRef(const CellRef&);
|
||||
CellRef& operator=(const CellRef&) = default;
|
||||
|
||||
CellRef (CellRef&& other);
|
||||
CellRef& operator=(CellRef&& other);
|
||||
};
|
||||
|
||||
bool operator== (const RefNum& left, const RefNum& right);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue