diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-10-02 17:50:42 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-10-02 17:50:42 +0200 |
commit | 095735fa1259a030da8c854ee8ff649fe907642d (patch) | |
tree | f373663646e2a6f77e57176493d621580adf656a /cpp | |
parent | f92b2858aa393c8886c35f0db50cc1a3a9603589 (diff) |
Enable clang-tidy bugprone-too-small-loop-variable
And fixes for it in the code
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/tests/poppler-dump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/tests/poppler-dump.cpp b/cpp/tests/poppler-dump.cpp index cdd515d3..395802be 100644 --- a/cpp/tests/poppler-dump.cpp +++ b/cpp/tests/poppler-dump.cpp @@ -103,8 +103,8 @@ static void error(const std::string &msg) static std::ostream& operator<<(std::ostream& stream, const poppler::ustring &str) { const poppler::byte_array ba = str.to_utf8(); - for (unsigned int i = 0; i < ba.size(); ++i) { - stream << (char)(ba[i]); + for (const char c : ba) { + stream << c; } return stream; } |