Skip to content

Commit

Permalink
Merge pull request #13770 from JoergAtGithub/FixClazy12errors_main
Browse files Browse the repository at this point in the history
Fix Clazy v1.12 errors in main
  • Loading branch information
Swiftb0y authored Oct 18, 2024
2 parents 6efbf8c + 456f8a3 commit a716202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/controllerrenderingengine_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class MockRenderingEngine : public ControllerRenderingEngine {
};

TEST_F(ControllerRenderingEngineTest, createValidRendererWithSupportedTypes) {
for (auto pixelFormat : supportedPixelFormat()) {
const auto& supportedPixelFormats = supportedPixelFormat();
for (const auto& pixelFormat : supportedPixelFormats) {
MockRenderingEngine screenTest(LegacyControllerMapping::ScreenInfo{
"", // identifier
QSize(0, 0), // size
Expand Down
2 changes: 1 addition & 1 deletion src/track/steminfoimporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ QList<StemInfo> StemInfoImporter::importStemInfos(
kLogger.debug() << "Unexpected or missing stems value in STEM manifest";
return {};
}
auto stemArray = stems.toArray();
const auto stemArray = stems.toArray();
QList<StemInfo> stemsList;
stemsList.reserve(stemArray.size());
int stemIdx = 0;
Expand Down

0 comments on commit a716202

Please sign in to comment.