https://bugs.kde.org/show_bug.cgi?id=438999
Bug ID: 438999 Summary: QVariant assignment (-Wclazy-qt6-deprecated-api-fixes) Product: clazy Version: unspecified Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: jo...@jkvinge.net CC: smart...@kde.org Target Milestone: --- SUMMARY QVariant assignment (-Wclazy-qt6-deprecated-api-fixes) STEPS TO REPRODUCE The following code gives warning: QVariant variant; QString string; variant = string; OBSERVED RESULT warning: operator does not exist in Qt6. Using QVariant::compare() instead [-Wclazy-qt6-deprecated-api-fixes] EXPECTED RESULT No warning. Is this a bug? I'm compiling with Qt dev branch and it does compile and work. Changing it setValue instead does not produce the warning: variant.setValue(string); SOFTWARE/OS VERSIONS Qt Version: Latest dev branch clazy version: 1.9 clang version: 12.0.0 -- You are receiving this mail because: You are watching all bug changes.