From 32a326cabf20ef0c462573aa62a2bc9b33cc6854 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 10 Jul 2018 15:27:29 +1000 Subject: Backport: Delete standard methods to avoid warnings. Backport of changeset 7064:6418332a6880. --- 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 663829c7f..cce9c0802 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -1087,6 +1087,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