Remove the return type for Utility::LoadExtensionLibrary

This commit is contained in:
Gunnar Beutner 2015-03-03 07:18:47 +01:00
parent bdb2a15e27
commit 7c31654552
4 changed files with 5 additions and 19 deletions

View File

@ -299,12 +299,7 @@ void Utility::Sleep(double timeout)
* *
* @param library The name of the library. * @param library The name of the library.
*/ */
#ifdef _WIN32 void Utility::LoadExtensionLibrary(const String& library)
HMODULE
#else /* _WIN32 */
void *
#endif /* _WIN32 */
Utility::LoadExtensionLibrary(const String& library)
{ {
String path; String path;
#if defined(_WIN32) #if defined(_WIN32)
@ -336,9 +331,6 @@ Utility::LoadExtensionLibrary(const String& library)
#endif /* _WIN32 */ #endif /* _WIN32 */
ExecuteDeferredInitializers(); ExecuteDeferredInitializers();
return hModule;
} }
boost::thread_specific_ptr<std::vector<boost::function<void(void)> > >& Utility::GetDeferredInitializers(void) boost::thread_specific_ptr<std::vector<boost::function<void(void)> > >& Utility::GetDeferredInitializers(void)

View File

@ -94,13 +94,7 @@ public:
static String FormatDateTime(const char *format, double ts); static String FormatDateTime(const char *format, double ts);
static String FormatErrorNumber(int code); static String FormatErrorNumber(int code);
static static void LoadExtensionLibrary(const String& library);
#ifdef _WIN32
HMODULE
#else /* _WIN32 */
void *
#endif /* _WIN32 */
LoadExtensionLibrary(const String& library);
static void AddDeferredInitializer(const boost::function<void(void)>& callback); static void AddDeferredInitializer(const boost::function<void(void)>& callback);
static void ExecuteDeferredInitializers(void); static void ExecuteDeferredInitializers(void);

View File

@ -55,7 +55,7 @@ static String LoadAppType(const String& typeSpec)
String library = typeSpec.SubStr(0, index); String library = typeSpec.SubStr(0, index);
(void) Utility::LoadExtensionLibrary(library); Utility::LoadExtensionLibrary(library);
return typeSpec.SubStr(index + 1); return typeSpec.SubStr(index + 1);
} }

View File

@ -171,7 +171,7 @@ Expression *ConfigCompiler::HandleIncludeRecursive(const String& path, const Str
*/ */
void ConfigCompiler::HandleLibrary(const String& library) void ConfigCompiler::HandleLibrary(const String& library)
{ {
(void) Utility::LoadExtensionLibrary(library); Utility::LoadExtensionLibrary(library);
} }
void ConfigCompiler::CompileHelper(void) void ConfigCompiler::CompileHelper(void)