From 63e7dc7bd6b9ee28b116c6d5447fb5352a2cbb04 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. Change-Id: I62ec7df7c4b807f84c96619f78b3cef704c51335 Reviewed-by: Tor Arne Vestbø (cherry picked from commit ea0b7dafb287ed3d044b574fb7671346bca087e4) Reviewed-by: Qt Cherry-pick Bot --- 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 73fbab98ccb..12ae0c2e132 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -820,7 +820,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() */