Skip to content

Commit

Permalink
tests fixed Clazy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 6, 2024
1 parent 70132ed commit 6dbb913
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@ void tst_Collection_Relations::fresh_QList_WithItem() const
ModelsCollection<AlbumImage *> imagesInit = images.toPointers();

// Verify before
for (auto *const image : imagesInit) {
for (auto *const image : std::as_const(imagesInit)) {
QVERIFY(image->getRelations().empty());

const auto nameRef = (*image)[NAME];
Expand Down Expand Up @@ -2718,7 +2718,7 @@ void tst_Collection_Relations::fresh_WithSelectConstraint() const
ModelsCollection<AlbumImage *> imagesInit = images.toPointers();

// Verify before
for (auto *const image : imagesInit) {
for (auto *const image : std::as_const(imagesInit)) {
QVERIFY(image->getRelations().empty());

const auto nameRef = (*image)[NAME];
Expand Down Expand Up @@ -2779,7 +2779,7 @@ void tst_Collection_Relations::fresh_QString() const
ModelsCollection<AlbumImage *> imagesInit = images.toPointers();

// Verify before
for (auto *const image : imagesInit) {
for (auto *const image : std::as_const(imagesInit)) {
QVERIFY(image->getRelations().empty());

const auto nameRef = (*image)[NAME];
Expand Down Expand Up @@ -2837,7 +2837,7 @@ void tst_Collection_Relations::fresh_EmptyRelations() const
ModelsCollection<AlbumImage *> imagesInit = images.toPointers();

// Verify before
for (auto *const image : imagesInit) {
for (auto *const image : std::as_const(imagesInit)) {
QVERIFY(image->getRelations().empty());

const auto nameRef = (*image)[NAME];
Expand Down

0 comments on commit 6dbb913

Please sign in to comment.