refactor: Fix clang-tidy modernize-return-braced-init-list

This commit is contained in:
Lars Toenning
2025-10-10 23:43:20 +02:00
parent 8f946b77d5
commit e09413614a
195 changed files with 724 additions and 690 deletions

View File

@@ -11,7 +11,7 @@ namespace swift::misc
CPropertyIndexList CPropertyIndexList::copyFrontRemoved() const
{
if (this->size() < 2) { return CPropertyIndexList(); }
if (this->size() < 2) { return {}; }
CPropertyIndexList copy(*this);
copy.pop_front();
return copy;