aboutsummaryrefslogtreecommitdiff
path: root/automoc/kde4automoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'automoc/kde4automoc.cpp')
-rw-r--r--automoc/kde4automoc.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/automoc/kde4automoc.cpp b/automoc/kde4automoc.cpp
index bb356037..b21b6364 100644
--- a/automoc/kde4automoc.cpp
+++ b/automoc/kde4automoc.cpp
@@ -1,9 +1,10 @@
/* This file is part of the KDE project
Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation.
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -117,7 +118,9 @@ bool AutoMoc::run()
line = dotFiles.readLine().trimmed();
const QStringList incPaths = QString::fromUtf8(line).split(';');
foreach (const QString &path, incPaths) {
- mocIncludes << "-I" + path;
+ if (!path.isEmpty()) {
+ mocIncludes << "-I" + path;
+ }
}
line = dotFiles.readLine();
Q_ASSERT(line == "SOURCES:\n");