mirror of
https://github.com/taglib/taglib.git
synced 2025-07-29 10:24:37 -04:00
clang-tidy: Use auto where it improves the readability
run-clang-tidy -header-filter='.*' -checks='-*,modernize-use-auto' \ -config="{CheckOptions: [{key: modernize-use-auto.RemoveStars, value: '1'}]}" \ -fix Manually fixed some wrong `const auto` replacements and verified that all types are deduced correctly.
This commit is contained in:
@ -152,7 +152,7 @@ bool IT::File::save()
|
||||
if(!readU16L(special))
|
||||
return false;
|
||||
|
||||
unsigned long fileSize = static_cast<unsigned long>(File::length());
|
||||
auto fileSize = static_cast<unsigned long>(File::length());
|
||||
if(special & Properties::MessageAttached) {
|
||||
seek(54);
|
||||
if(!readU16L(messageLength) || !readU32L(messageOffset))
|
||||
|
Reference in New Issue
Block a user