mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
sources(ft2): simplified qstring compare
This commit is contained in:
parent
14b311f6ab
commit
682c349831
@ -849,7 +849,7 @@ void WSRequestHandler::HandleGetTextFreetype2Properties(WSRequestHandler* req) {
|
||||
}
|
||||
|
||||
QString sourceId = obs_source_get_id(source);
|
||||
if (sourceId != QString("text_ft2_source")) {
|
||||
if (sourceId != "text_ft2_source") {
|
||||
req->SendErrorResponse("not a freetype 2 source");
|
||||
return;
|
||||
}
|
||||
@ -899,7 +899,7 @@ void WSRequestHandler::HandleSetTextFreetype2Properties(WSRequestHandler* req) {
|
||||
}
|
||||
|
||||
QString sourceId = obs_source_get_id(source);
|
||||
if (sourceId != QString("text_ft2_source")) {
|
||||
if (sourceId != "text_ft2_source") {
|
||||
req->SendErrorResponse("not text freetype 2 source");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user