1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-19 18:10:37 +00:00

Mark WorldModel copy ctor and assignment operators as delete

This commit is contained in:
elsid 2023-01-09 10:55:42 +01:00
parent 48fde4b517
commit 4cf5136143
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -50,9 +50,6 @@ namespace MWWorld
std::size_t mPtrIndexUpdateCounter = 0;
ESM::RefNum mLastGeneratedRefnum;
WorldModel(const WorldModel&);
WorldModel& operator=(const WorldModel&);
const ESM::Cell* getESMCellByName(std::string_view name);
ESM::CellVariant getCellByName(std::string_view name);
@ -62,10 +59,13 @@ namespace MWWorld
void writeCell(ESM::ESMWriter& writer, CellStore& cell) const;
public:
void clear();
explicit WorldModel(const MWWorld::ESMStore& store, ESM::ReadersCache& reader);
WorldModel(const WorldModel&) = delete;
WorldModel& operator=(const WorldModel&) = delete;
void clear();
CellStore* getExterior(int x, int y);
CellStore* getInterior(std::string_view name);
CellStore* getCell(std::string_view name); // interior or named exterior