mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
Apply suggestions from code review
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
04a405067d
commit
86fd58e6cb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue