From 0b7574bcfe7b955b826c483c715cd1c6181e680a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Wed, 4 May 2022 11:52:43 +0200 Subject: [PATCH] Avoid copying std::string in loop --- src/IO/IOTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IO/IOTask.cpp b/src/IO/IOTask.cpp index 36c4f9c786..0b43cc3835 100644 --- a/src/IO/IOTask.cpp +++ b/src/IO/IOTask.cpp @@ -42,7 +42,7 @@ void Parameter::warnUnusedParameters< * Fake-read non-backend-specific options. Some backends don't read those * and we don't want to have warnings for them. */ - for (std::string const &key : {"resizable"}) + for (char const *key : {"resizable"}) { config[key]; }