mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-17 11:18:30 -04:00
clang-tidy: Apply modernize-use-auto everywhere (#6480)
Note: clang-tidy was run with `--format-style=file`.
This commit is contained in:
@@ -427,7 +427,7 @@ bool DataFile::copyResources(const QString& resourcesDir)
|
||||
// repeating filenames
|
||||
std::list<QString> namesList;
|
||||
|
||||
ResourcesMap::const_iterator it = ELEMENTS_WITH_RESOURCES.begin();
|
||||
auto it = ELEMENTS_WITH_RESOURCES.begin();
|
||||
|
||||
// Copy resources and manipulate the DataFile to have local paths to them
|
||||
while (it != ELEMENTS_WITH_RESOURCES.end())
|
||||
@@ -439,7 +439,7 @@ bool DataFile::copyResources(const QString& resourcesDir)
|
||||
{
|
||||
QDomElement el = list.item(i).toElement();
|
||||
|
||||
std::vector<QString>::const_iterator res = it->second.begin();
|
||||
auto res = it->second.begin();
|
||||
|
||||
// Search for attributes that point to resources
|
||||
while (res != it->second.end())
|
||||
@@ -533,12 +533,7 @@ bool DataFile::hasLocalPlugins(QDomElement parent /* = QDomElement()*/, bool fir
|
||||
bool skipNode = false;
|
||||
// Skip the nodes allowed to have "local:" attributes, but
|
||||
// still check its children
|
||||
for
|
||||
(
|
||||
ResourcesMap::const_iterator it = ELEMENTS_WITH_RESOURCES.begin();
|
||||
it != ELEMENTS_WITH_RESOURCES.end();
|
||||
++it
|
||||
)
|
||||
for (auto it = ELEMENTS_WITH_RESOURCES.begin(); it != ELEMENTS_WITH_RESOURCES.end(); ++it)
|
||||
{
|
||||
if (childElement.tagName() == it->first)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user