[clazy] [Bug 438999] New: QVariant assignment (-Wclazy-qt6-deprecated-api-fixes)

Jonas Kvinge bugzilla_noreply at kde.org
Mon Jun 21 15:55:13 BST 2021


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-bugs at kde.org
          Reporter: jonas at jkvinge.net
                CC: smartins at 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 the assignee for the bug.


More information about the Unassigned-bugs mailing list