diff options
author | hjk <hjk@qt.io> | 2019-05-17 13:36:48 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-20 13:06:06 +0000 |
commit | c04370aa2665f36828bfd4001fec2d2a6cf7b9f9 (patch) | |
tree | d946d0f2d7302a2e6029579ec533c14e6e6f52cf /src/plugins/remotelinux | |
parent | fc04ec1c3e90c2085f3fefaca82dfaa0f4d5c89e (diff) | |
download | qt-creator-c04370aa2665f36828bfd4001fec2d2a6cf7b9f9.tar.gz |
Utils: Make FileName::isFileNewerThan a member
Easier to discover and more compact in use.
Change-Id: I93dae0570a1dfded4d40dd6ae69b99fe82e3788f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/remotelinux')
-rw-r--r-- | src/plugins/remotelinux/abstractpackagingstep.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/remotelinux/abstractpackagingstep.cpp b/src/plugins/remotelinux/abstractpackagingstep.cpp index 75a6fe2fa7..81f692a87f 100644 --- a/src/plugins/remotelinux/abstractpackagingstep.cpp +++ b/src/plugins/remotelinux/abstractpackagingstep.cpp @@ -114,10 +114,8 @@ bool AbstractPackagingStep::isPackagingNeeded() const const DeploymentData &dd = target()->deploymentData(); for (int i = 0; i < dd.fileCount(); ++i) { - if (Utils::FileUtils::isFileNewerThan(dd.fileAt(i).localFilePath(), - packageInfo.lastModified())) { + if (dd.fileAt(i).localFilePath().isNewerThan(packageInfo.lastModified())) return true; - } } return false; |