From b32f3ba9e4d9a24ddb10c6c5901e2d299aea23ca Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 28 Aug 2012 10:12:36 +0200 Subject: remove pretenses of supporting projects on stdin this may have worked a decade ago, but now it only produces funny Makefiles (and needs hacking main.cpp). the feature doesn't seem *too* important, so just clean it out. Change-Id: I50a60b0e30341f0b523e4a5731c770c9c1013f8b Reviewed-by: Daniel Teske Reviewed-by: Joerg Bornemann --- qmake/option.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qmake/option.cpp') diff --git a/qmake/option.cpp b/qmake/option.cpp index 7f0b4aab3b..1a663c14c5 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -512,8 +512,7 @@ Option::init(int argc, char **argv) void Option::prepareProject(const QString &pfile) { - QString srcpath = (pfile != "-") - ? QDir::cleanPath(QFileInfo(pfile).absolutePath()) : qmake_getpwd(); + QString srcpath = QDir::cleanPath(QFileInfo(pfile).absolutePath()); if (srcpath != output_dir) { if (!srcpath.endsWith(QLatin1Char('/'))) srcpath += QLatin1Char('/'); -- cgit v1.2.3