4
1
mirror of https://github.com/QuasarApp/Snake.git synced 2025-05-11 17:09:45 +00:00

Apply suggestions from code review

This commit is contained in:
Andrei Yankovich 2021-06-15 21:41:38 +03:00 committed by GitHub
parent 3ae68fcbe7
commit 35fe5077ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,7 @@ IWorld* PluginLoader::load(const QString &pluginPath) {
QuasarAppUtils::Params::log("Fail to load game module. Message: " + lib.errorString(),
QuasarAppUtils::Error);
return {};
return nullptr;
}
worldInstance worldFunc = (worldInstance)lib.resolve("worldInstance");
@ -28,7 +28,7 @@ IWorld* PluginLoader::load(const QString &pluginPath) {
QuasarAppUtils::Error);
lib.unload();
return {};
return nullptr;
}
return worldFunc();