From 29c4f2f0e853ce7400b3032f76d39a46ca2e8950 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Fri, 3 Apr 2026 21:22:24 +0500 Subject: [PATCH] LaunchController: replace Q_ASSERT_X with regular Q_ASSERT the info specified in the where/what arguments isn't more helpful compared to the default output of Q_ASSERT Signed-off-by: Octol1ttle --- launcher/LaunchController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 9ea4609ea..d263cc50a 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -364,8 +364,8 @@ bool LaunchController::reauthenticateAccount(const MinecraftAccountPtr& account, void LaunchController::launchInstance() { - Q_ASSERT_X(m_instance != NULL, "launchInstance", "instance is NULL"); - Q_ASSERT_X(m_session.get() != nullptr, "launchInstance", "session is NULL"); + Q_ASSERT(m_instance != nullptr); + Q_ASSERT(m_session.get() != nullptr); if (!m_instance->reloadSettings()) { QMessageBox::critical(m_parentWidget, tr("Error!"), tr("Couldn't load the instance profile."));