[clazy] [Bug 416046] New: Suggest to check that QDir().exists(...) is used correctly

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Thu Jan 9 13:30:44 GMT 2020


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

            Bug ID: 416046
           Summary: Suggest to check that QDir().exists(...) is used
                    correctly
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: avolkov at astralinux.ru
                CC: smartins at kde.org
  Target Milestone: ---

It is used in several places in KDE:
https://lxr.kde.org/search?_filestring=&_string=QDir%5C%28%5C%29.exists

Warn that QDir().exists(path) checks for the existence of path and doesn't
check that path is a directory. Suggest to use QFile::exists() or
QFileInfo(path).isDir() instead.

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


More information about the Unassigned-bugs mailing list