From 320bbb9854a225d9e26ff2a2b42054b48a23b9fe Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 27 May 2023 21:04:32 +0100 Subject: Code tidy - Clang-Tidy rule modernize-return-braced-init-list --- libqpdf/InputSource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/InputSource.cc') diff --git a/libqpdf/InputSource.cc b/libqpdf/InputSource.cc index f5dc7706..9389c2f5 100644 --- a/libqpdf/InputSource.cc +++ b/libqpdf/InputSource.cc @@ -37,7 +37,7 @@ InputSource::readLine(size_t max_line_length) if (line_length < max_line_length) { buf[line_length] = '\0'; } - return std::string(buf); + return {buf}; } bool -- cgit v1.2.3-54-g00ecf