diff options
| author | 2018-06-10 00:16:59 +0100 | |
|---|---|---|
| committer | 2018-11-14 08:59:22 -0500 | |
| commit | e4a34cb9b7d59a08a162d642fbbca8c08804b3ff (patch) | |
| tree | b3c5524281b4714da91729ffd19c9abbc95f8c62 /src/modules/objects/qtftp/qurlinfo.cpp | |
| parent | Use C++14 (diff) | |
| download | KVIrc-e4a34cb9b7d59a08a162d642fbbca8c08804b3ff.tar.gz KVIrc-e4a34cb9b7d59a08a162d642fbbca8c08804b3ff.tar.bz2 KVIrc-e4a34cb9b7d59a08a162d642fbbca8c08804b3ff.zip | |
Apply all modernize-* fixes from clang-tidy except for modernize-use-auto
Diffstat (limited to 'src/modules/objects/qtftp/qurlinfo.cpp')
| -rw-r--r-- | src/modules/objects/qtftp/qurlinfo.cpp | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/src/modules/objects/qtftp/qurlinfo.cpp b/src/modules/objects/qtftp/qurlinfo.cpp index 2df6adfdb..6e19960c5 100644 --- a/src/modules/objects/qtftp/qurlinfo.cpp +++ b/src/modules/objects/qtftp/qurlinfo.cpp @@ -43,38 +43,32 @@ #include "qurl.h" #include "qdir.h" -#include <limits.h> +#include <climits> QT_BEGIN_NAMESPACE class QUrlInfoPrivate { public: - QUrlInfoPrivate() : permissions(0), - size(0), - isDir(false), - isFile(true), - isSymLink(false), - isWritable(true), - isReadable(true), - isExecutable(false) + QUrlInfoPrivate() + { } QString name; - int permissions; + int permissions{ 0 }; QString owner; QString group; - qint64 size; + qint64 size{ 0 }; QDateTime lastModified; QDateTime lastRead; - bool isDir; - bool isFile; - bool isSymLink; - bool isWritable; - bool isReadable; - bool isExecutable; + bool isDir{ false }; + bool isFile{ true }; + bool isSymLink{ false }; + bool isWritable{ true }; + bool isReadable{ true }; + bool isExecutable{ false }; }; /*! |
