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:
@@ -51,7 +51,7 @@ public:
|
||||
));
|
||||
}
|
||||
|
||||
for (auto thread : threads)
|
||||
for (auto& thread : threads)
|
||||
{
|
||||
thread->join();
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
SharedMemory::Vector<SharedMemory::String>* strings =
|
||||
access.accessValueWithAllocator<SharedMemory::Vector<SharedMemory::String>>("strings");
|
||||
TS_ASSERT_EQUALS(strings->size(), 4);
|
||||
for (SharedMemory::String str : *strings)
|
||||
for (SharedMemory::String& str : *strings)
|
||||
{
|
||||
TS_ASSERT_EQUALS(str, "ho");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user