Skip to content

Commit

Permalink
forgot to add .c_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryCarlyon authored and RytoEX committed Oct 29, 2024
1 parent 3e3da4e commit 702bb0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/requesthandler/RequestHandler_Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 702bb0c

Please sign in to comment.