diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-01-29 13:12:43 +0100 |
---|---|---|
committer | João Abecasis <joao@trolltech.com> | 2010-01-29 13:12:43 +0100 |
commit | 6d2288d4b8d6ffe7eb7cef9a0677be2ad3f45341 (patch) | |
tree | af81601cc6d115aa944224f10a1dd9f0eb5937a0 /src/corelib/io/qdir.h | |
parent | 5d8e2a668d497e81c812328f045d73c7f24efc70 (diff) |
code cleanup and styling fixes
* remove trailing whitespaces
* tabs -> whitespaces
* "if(" -> "if ("
* "while(" -> "while ("
* "for(" -> "for ("
* "for (int i.*; i++)" -> "for (int i.*; ++i)" /* looks better ;) */
* minor doc fixes
Merge-request: 445
Reviewed-by: João Abecasis <joao@trolltech.com>
Diffstat (limited to 'src/corelib/io/qdir.h')
-rw-r--r-- | src/corelib/io/qdir.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/io/qdir.h b/src/corelib/io/qdir.h index 6be4922d20..186dd2f05a 100644 --- a/src/corelib/io/qdir.h +++ b/src/corelib/io/qdir.h @@ -83,7 +83,7 @@ public: Modified = 0x080, Hidden = 0x100, System = 0x200, - + AccessMask = 0x3F0, AllDirs = 0x400, @@ -215,6 +215,7 @@ public: static bool match(const QStringList &filters, const QString &fileName); static bool match(const QString &filter, const QString &fileName); #endif + static QString cleanPath(const QString &path); void refresh() const; @@ -246,7 +247,7 @@ public: inline QT3_SUPPORT static QString homeDirPath() { return homePath(); } inline QT3_SUPPORT static QString rootDirPath() { return rootPath(); } inline QT3_SUPPORT static QString cleanDirPath(const QString &name) { return cleanPath(name); } -#endif +#endif // QT3_SUPPORT }; Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::Filters) |