[clazy] [Bug 439337] New: clazy-qt6-deprecated-api-fixes creates invalid code

Nicolas Fella bugzilla_noreply at kde.org
Wed Jun 30 15:59:20 BST 2021


https://bugs.kde.org/show_bug.cgi?id=439337

            Bug ID: 439337
           Summary: clazy-qt6-deprecated-api-fixes creates invalid code
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: nicolas.fella at gmx.de
                CC: smartins at kde.org
  Target Milestone: ---

Consider this code:

QDir d;
QFileInfo fi;
d = fi.absolutePath();

clazy warns that setPath() should be used. The fixit results in the following
code:

QDir d;
QFileInfo fi;

d.setPath(fi);

which fails to build against Qt 6.1.2:

error: no matching function for call to 'QDir::setPath(QFileInfo&)'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list