From ea0b7dafb287ed3d044b574fb7671346bca087e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 30 Jun 2023 15:54:49 +0200 Subject: [PATCH] Doc: Generalize statement about QLibrary::unload() and macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We dropped support for macOS 10.3 in Qt 4.6, 14 years ago. But the logic to only 'fake' the unloading on Q_OS_DARWIN remains. Also, add a statement explaining the behavior in more detail. Pick-to: 6.5 6.6 Change-Id: I62ec7df7c4b807f84c96619f78b3cef704c51335 Reviewed-by: Tor Arne Vestbø --- src/corelib/plugin/qlibrary.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index ca5b6a03f1..1f6d3e9019 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -827,7 +827,9 @@ bool QLibrary::load() call will fail, and unloading will only happen when every instance has called unload(). - Note that on Mac OS X 10.3 (Panther), dynamic libraries cannot be unloaded. + Note that on \macos, dynamic libraries cannot be unloaded. + QLibrary::unload() will return \c true, but the library will remain + loaded into the process. \sa resolve(), load() */