Utils: Consistently use nullptr

Fixed by clang-tidy modernize-use-nullptr.

Change-Id: I93edae67271a521e3b2a1f97f486e5fa97009836
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2018-05-07 17:33:02 +02:00
committed by Orgad Shaneh
parent ebf2d6f4e2
commit 63ef88d015
52 changed files with 101 additions and 95 deletions

View File

@@ -112,9 +112,10 @@ using FileNameList = QList<FileName>;
class QTCREATOR_UTILS_EXPORT FileUtils {
public:
static bool removeRecursively(const FileName &filePath, QString *error = 0);
static bool copyRecursively(const FileName &srcFilePath, const FileName &tgtFilePath,
QString *error = 0, const std::function<bool (QFileInfo, QFileInfo, QString *)> &copyHelper = std::function<bool (QFileInfo, QFileInfo, QString *)>());
static bool removeRecursively(const FileName &filePath, QString *error = nullptr);
static bool copyRecursively(
const FileName &srcFilePath, const FileName &tgtFilePath, QString *error = nullptr,
const std::function<bool (QFileInfo, QFileInfo, QString *)> &copyHelper = nullptr);
static bool isFileNewerThan(const FileName &filePath, const QDateTime &timeStamp);
static FileName resolveSymlinks(const FileName &path);
static FileName canonicalPath(const FileName &path);