From 9fc41e4245c5d168c45bccd1338c457b78101642 Mon Sep 17 00:00:00 2001 From: Chris Angelico Date: Thu, 5 Mar 2020 05:14:46 +1100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes all the easy ones. I'll look into the more substantive changes in a bit. Co-Authored-By: Stéphane Lepin --- src/WSRequestHandler_General.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WSRequestHandler_General.cpp b/src/WSRequestHandler_General.cpp index 8d3794ed..762dcea7 100644 --- a/src/WSRequestHandler_General.cpp +++ b/src/WSRequestHandler_General.cpp @@ -316,10 +316,10 @@ RpcResponse WSRequestHandler::GetVideoInfo(const RpcRequest& request) { * @api requests * @name OpenProjector * @category general - * @since 4.7.0 + * @since unreleased */ RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) { - #if LIBOBS_API_VER >= 0x18000004 +#if LIBOBS_API_VER >= 0x18000004 const char *type = obs_data_get_string(request.parameters(), "type"); int monitor = -1; if (request.hasField("monitor")) { @@ -329,7 +329,7 @@ RpcResponse WSRequestHandler::OpenProjector(const RpcRequest& request) { const char *name = obs_data_get_string(request.parameters(), "name"); obs_frontend_open_projector(type, monitor, geometry, name); return request.success(); - #else +#else return request.failed("Projector opening requires libobs v24.0.4 or newer."); - #endif +#endif }