From a0dbdcc3abbd3e6307c6e68d0e60f8c0fa31d576 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Mon, 6 May 2024 16:20:20 +0200 Subject: Replace `find` with `contains/has` where applicable * Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/main.cpp') diff --git a/main/main.cpp b/main/main.cpp index e30584ebb9..1ba336221f 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2993,7 +2993,7 @@ Error Main::setup2() { // Dummy text driver cannot draw any text, making the editor unusable if selected. continue; } - if (!text_driver_options.is_empty() && text_driver_options.find(",") == -1) { + if (!text_driver_options.is_empty() && !text_driver_options.contains(",")) { // Not the first option; add a comma before it as a separator for the property hint. text_driver_options += ","; } -- cgit v1.2.3