From abca3183acac82c61a4ae495326a7ba19682ab3b Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Fri, 13 Dec 2024 14:41:10 -0500 Subject: [PATCH] chore: replace deprecated syntax --- src/core/Agent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Agent.cpp b/src/core/Agent.cpp index c9a7825..f3c579b 100644 --- a/src/core/Agent.cpp +++ b/src/core/Agent.cpp @@ -2,6 +2,8 @@ #include #include +#include +using namespace Qt::Literals::StringLiterals; #include "Agent.hpp" #include "../QMLIntegration.hpp" @@ -64,7 +66,7 @@ void CAgent::initAuthPrompt() { authState.qmlEngine = new QQmlApplicationEngine(); authState.qmlEngine->rootContext()->setContextProperty("hpa", authState.qmlIntegration); - authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_qs}); + authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_s}); authState.qmlIntegration->focusField(); }