From a54f642e85ed2c7138bbf8248c12f62dc0fdb890 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 10 Jul 2018 15:27:29 +1000 Subject: Delete standard methods to avoid warnings. --- qt/ScintillaEditBase/PlatQt.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 9ae9ce03b..c1417b29b 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -1096,6 +1096,11 @@ public: QString path = QString::fromUtf8(modulePath); lib = new QLibrary(path); } + // Deleted so DynamicLibraryImpl objects can not be copied + DynamicLibraryImpl(const DynamicLibraryImpl &) = delete; + DynamicLibraryImpl(DynamicLibraryImpl &&) = delete; + DynamicLibraryImpl &operator=(const DynamicLibraryImpl &) = delete; + DynamicLibraryImpl &operator=(DynamicLibraryImpl &&) = delete; virtual ~DynamicLibraryImpl() { if (lib) -- cgit v1.2.3