diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-03-25 13:36:54 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-03-25 15:14:30 +0100 |
commit | 53bc7f0e161e823ef8fc1b551dfc2e23bc87b654 (patch) | |
tree | e7f27b802a4efaa492b719a41a983371bc0d97e7 /tools/repogen | |
parent | 4eab0cc244066d884eef7b411d46a978efe13a38 (diff) |
Reuse existing make absolute.
Change-Id: I9ad7287db0539e3fb6819220a3648244c10f1869
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'tools/repogen')
-rw-r--r-- | tools/repogen/repogen.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/repogen/repogen.cpp b/tools/repogen/repogen.cpp index 1380e4ebf..d319b2c89 100644 --- a/tools/repogen/repogen.cpp +++ b/tools/repogen/repogen.cpp @@ -90,14 +90,6 @@ static int printErrorAndUsageAndExit(const QString &err) return 1; } -static QString makeAbsolute(const QString &path) -{ - QFileInfo fi(path); - if (fi.isAbsolute()) - return path; - return QDir::current().absoluteFilePath(path); -} - int main(int argc, char** argv) { try { @@ -188,7 +180,7 @@ int main(int argc, char** argv) "exclusive!")); } - const QString repositoryDir = makeAbsolute(args.first()); + const QString repositoryDir = QInstallerTools::makePathAbsolute(args.first()); if (remove) QInstaller::removeDirectory(repositoryDir); |