From 702bb0c4744122d1222f0ac4d0376b8771eb64a2 Mon Sep 17 00:00:00 2001 From: Barry Carlyon Date: Thu, 24 Oct 2024 12:18:19 -0400 Subject: [PATCH] forgot to add .c_str() --- 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 139d1a07..e6f21b9c 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(profileName); + obs_frontend_create_profile(profileName.c_str()); 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(profileName); + obs_frontend_delete_profile(profileName.c_str()); return RequestResult::Success(); }