Skip to content

Commit

Permalink
Merge pull request #11541 from daschuer/qbyteref_compare
Browse files Browse the repository at this point in the history
Avoid ambiguous != operator with QByteRef and QByteRef
  • Loading branch information
Swiftb0y authored May 8, 2023
2 parents 47b056f + aeb1d97 commit e98b132
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/analyserwaveformtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ class AnalyzerWaveformTest : public MixxxTest {
bool pass = true;
// If the file is not there, we will fail and write out the .actual
// reference file.
QByteArray actual = pWaveform->toByteArray();
QByteArray reference;
const QByteArray actual = pWaveform->toByteArray();

ASSERT_TRUE(f.open(QFile::ReadOnly));
reference = f.readAll();
const QByteArray reference = f.readAll();

if (actual.size() == reference.size()) {
for (int i = 0; i < actual.size(); ++i) {
if (actual[i] != reference[i]) {
if (actual.at(i) != reference.at(i)) {
qDebug() << "#" << i << QString::number(actual[i], 16)
<< QString::number(reference[i], 16);
pass = false;
Expand Down

0 comments on commit e98b132

Please sign in to comment.