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:
parent
3ae68fcbe7
commit
35fe5077ba
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user