summaryrefslogtreecommitdiffstats
path: root/qmake/option.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-15 18:26:07 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-26 13:29:15 (GMT)
commit4c097589a30a6062e5e2a011a5cc11422352def9 (patch)
tree53778528168184d50637325f09bb55804b4bdb79 /qmake/option.cpp
parent6b3502bb096a35e6bd882fb505f98e3e64e9be30 (diff)
downloadQt-4c097589a30a6062e5e2a011a5cc11422352def9.zip
Qt-4c097589a30a6062e5e2a011a5cc11422352def9.tar.gz
Qt-4c097589a30a6062e5e2a011a5cc11422352def9.tar.bz2
use QDir::separator() instead of Option::dir_sep where appropriate
in these cases, the separator depends on the *real* host platform, not on the one that will host the build. there are many more cases like that, but that's for (much) later ... Reviewed-by: mariusSO
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r--qmake/option.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp
index 592e3eb..4f6ce5d 100644
--- a/qmake/option.cpp
+++ b/qmake/option.cpp
@@ -126,7 +126,7 @@ QString Option::mkfile::qmakespec_commandline;
static Option::QMAKE_MODE default_mode(QString progname)
{
- int s = progname.lastIndexOf(Option::dir_sep);
+ int s = progname.lastIndexOf(QDir::separator());
if(s != -1)
progname = progname.right(progname.length() - (s + 1));
if(progname == "qmakegen")