From 682c349831cc089927c8ab2b98f6e8beb0fdaa82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lepin?= Date: Sun, 23 Dec 2018 18:30:27 +0100 Subject: [PATCH] sources(ft2): simplified qstring compare --- src/WSRequestHandler_Sources.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WSRequestHandler_Sources.cpp b/src/WSRequestHandler_Sources.cpp index c12fa672..0b039c5d 100644 --- a/src/WSRequestHandler_Sources.cpp +++ b/src/WSRequestHandler_Sources.cpp @@ -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; }