From 544bac1c16f97a82cb9c8ff853c2861d97dddce2 Mon Sep 17 00:00:00 2001 From: Xinyu Han <39960727+XinyuKhan@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:59:15 +0800 Subject: [PATCH] Update ClassLoader.h --- Foundation/include/Poco/ClassLoader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/ClassLoader.h b/Foundation/include/Poco/ClassLoader.h index 4a49c25148..a1eb885a84 100644 --- a/Foundation/include/Poco/ClassLoader.h +++ b/Foundation/include/Poco/ClassLoader.h @@ -139,7 +139,7 @@ class ClassLoader } } - void loadLibrary(const std::string& path, const std::string& manifest) + void loadLibrary(const std::string& path, const std::string& manifest, int flags = 0) /// Loads a library from the given path, using the given manifest. /// Does nothing if the library is already loaded. /// Throws a LibraryLoadException if the library @@ -161,7 +161,7 @@ class ClassLoader li.refCount = 1; try { - li.pLibrary = new SharedLibrary(path); + li.pLibrary = new SharedLibrary(path, flags); li.pManifest = new Manif(); std::string pocoBuildManifestSymbol("pocoBuildManifest"); pocoBuildManifestSymbol.append(manifest);