Apply suggestions from code review
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
@@ -150,7 +150,7 @@ bool LaunchController::askPlayDemo()
|
||||
|
||||
QString LaunchController::askOfflineName(QString playerName, bool demo, bool* ok)
|
||||
{
|
||||
if (ok) {
|
||||
if (ok != nullptr) {
|
||||
*ok = false;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ QString LaunchController::askOfflineName(QString playerName, bool demo, bool* ok
|
||||
usedname = name;
|
||||
APPLICATION->settings()->set("LastOfflinePlayerName", usedname);
|
||||
|
||||
if (ok) {
|
||||
if (ok != nullptr) {
|
||||
*ok = true;
|
||||
}
|
||||
return usedname;
|
||||
|
||||
Reference in New Issue
Block a user