From 839fa0aec66c026dc489b94e69019d25cb028fae Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:52:43 +0100 Subject: [PATCH] prevent `StringsTable` copy --- include/Data/StringsTable.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/Data/StringsTable.h b/include/Data/StringsTable.h index 11d208a9..1fab5bf5 100644 --- a/include/Data/StringsTable.h +++ b/include/Data/StringsTable.h @@ -35,6 +35,12 @@ namespace S2Plugin size_t size{0}; // Use the model as cache QStandardItemModel cache; + + StringsTable(){}; + ~StringsTable(){}; + StringsTable(const StringsTable&) = delete; + StringsTable& operator=(const StringsTable&) = delete; + friend struct Spelunky2; }; } // namespace S2Plugin