From 6578a27e94859e620854694aa64977b111ca967f Mon Sep 17 00:00:00 2001 From: Barry Carlyon Date: Thu, 24 Oct 2024 12:17:35 -0400 Subject: [PATCH] remove QString::fromStdString --- src/requesthandler/RequestHandler_Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/requesthandler/RequestHandler_Config.cpp b/src/requesthandler/RequestHandler_Config.cpp index dcac4fc9..139d1a07 100644 --- a/src/requesthandler/RequestHandler_Config.cpp +++ b/src/requesthandler/RequestHandler_Config.cpp @@ -289,7 +289,7 @@ RequestResult RequestHandler::CreateProfile(const Request &request) if (std::find(profiles.begin(), profiles.end(), profileName) != profiles.end()) return RequestResult::Error(RequestStatus::ResourceAlreadyExists); - obs_frontend_create_profile(QString::fromStdString(profileName)); + obs_frontend_create_profile(profileName); return RequestResult::Success(); } @@ -322,7 +322,7 @@ RequestResult RequestHandler::RemoveProfile(const Request &request) if (profiles.size() < 2) return RequestResult::Error(RequestStatus::NotEnoughResources); - obs_frontend_delete_profile(QString::fromStdString(profileName)); + obs_frontend_delete_profile(profileName); return RequestResult::Success(); }