chore: Enable most modernize checks (#7664)

This commit is contained in:
Ayaz Salikhov
2026-07-06 13:19:52 +01:00
committed by GitHub
parent c92285f10d
commit d07d2aba2e
46 changed files with 125 additions and 223 deletions

View File

@@ -86,8 +86,8 @@ Reader::parse(char const* beginDoc, char const* endDoc, Value& root)
begin_ = beginDoc;
end_ = endDoc;
current_ = begin_;
lastValueEnd_ = 0;
lastValue_ = 0;
lastValueEnd_ = nullptr;
lastValue_ = nullptr;
errors_.clear();
while (!nodes_.empty())
@@ -908,9 +908,8 @@ Reader::getFormattedErrorMessages() const
{
std::string formattedMessage;
for (auto itError = errors_.begin(); itError != errors_.end(); ++itError)
for (auto const& error : errors_)
{
ErrorInfo const& error = *itError;
formattedMessage += "* " + getLocationLineAndColumn(error.token.start) + "\n";
formattedMessage += " " + error.message + "\n";