src: clazy compiler warnings
get rid of most clazy warnings (https://github.com/KDE/clazy) * range loop use refs * qcolor ctor with ints * missing Q_OBJECT macro * use .constfirst instead of .first enabled ccache for unix systems for fasterr recompiling * if ccache is in path we use it now
This commit is contained in:
@@ -322,7 +322,7 @@ FilePath FilePath::replaceExtension(const std::string& extension) const
|
||||
bool FilePath::hasExtension(const std::vector<std::string>& extensions) const
|
||||
{
|
||||
std::string e = extension();
|
||||
for (std::string ext : extensions)
|
||||
for (const std::string& ext : extensions)
|
||||
{
|
||||
if (e == ext)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user