Skip to content

Commit

Permalink
remove QString::fromStdString
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryCarlyon committed Oct 24, 2024
1 parent f0eadf8 commit 6578a27
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(QString::fromStdString(profileName));
obs_frontend_create_profile(profileName);

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(QString::fromStdString(profileName));
obs_frontend_delete_profile(profileName);

return RequestResult::Success();
}
Expand Down

0 comments on commit 6578a27

Please sign in to comment.