mirror of https://github.com/Icinga/icinga2.git
Remove the return type for Utility::LoadExtensionLibrary
This commit is contained in:
parent
bdb2a15e27
commit
7c31654552
|
@ -299,12 +299,7 @@ void Utility::Sleep(double timeout)
|
|||
*
|
||||
* @param library The name of the library.
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
HMODULE
|
||||
#else /* _WIN32 */
|
||||
void *
|
||||
#endif /* _WIN32 */
|
||||
Utility::LoadExtensionLibrary(const String& library)
|
||||
void Utility::LoadExtensionLibrary(const String& library)
|
||||
{
|
||||
String path;
|
||||
#if defined(_WIN32)
|
||||
|
@ -336,9 +331,6 @@ Utility::LoadExtensionLibrary(const String& library)
|
|||
#endif /* _WIN32 */
|
||||
|
||||
ExecuteDeferredInitializers();
|
||||
|
||||
|
||||
return hModule;
|
||||
}
|
||||
|
||||
boost::thread_specific_ptr<std::vector<boost::function<void(void)> > >& Utility::GetDeferredInitializers(void)
|
||||
|
|
|
@ -94,13 +94,7 @@ public:
|
|||
static String FormatDateTime(const char *format, double ts);
|
||||
static String FormatErrorNumber(int code);
|
||||
|
||||
static
|
||||
#ifdef _WIN32
|
||||
HMODULE
|
||||
#else /* _WIN32 */
|
||||
void *
|
||||
#endif /* _WIN32 */
|
||||
LoadExtensionLibrary(const String& library);
|
||||
static void LoadExtensionLibrary(const String& library);
|
||||
|
||||
static void AddDeferredInitializer(const boost::function<void(void)>& callback);
|
||||
static void ExecuteDeferredInitializers(void);
|
||||
|
|
|
@ -55,7 +55,7 @@ static String LoadAppType(const String& typeSpec)
|
|||
|
||||
String library = typeSpec.SubStr(0, index);
|
||||
|
||||
(void) Utility::LoadExtensionLibrary(library);
|
||||
Utility::LoadExtensionLibrary(library);
|
||||
|
||||
return typeSpec.SubStr(index + 1);
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ Expression *ConfigCompiler::HandleIncludeRecursive(const String& path, const Str
|
|||
*/
|
||||
void ConfigCompiler::HandleLibrary(const String& library)
|
||||
{
|
||||
(void) Utility::LoadExtensionLibrary(library);
|
||||
Utility::LoadExtensionLibrary(library);
|
||||
}
|
||||
|
||||
void ConfigCompiler::CompileHelper(void)
|
||||
|
|
Loading…
Reference in New Issue