summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/dialogs/qfilesystemmodel.cpp10
-rw-r--r--src/gui/dialogs/qfscompleter_p.h6
2 files changed, 6 insertions, 10 deletions
diff --git a/src/gui/dialogs/qfilesystemmodel.cpp b/src/gui/dialogs/qfilesystemmodel.cpp
index 2c46ae4..bdf0909 100644
--- a/src/gui/dialogs/qfilesystemmodel.cpp
+++ b/src/gui/dialogs/qfilesystemmodel.cpp
@@ -381,16 +381,12 @@ QFileSystemModelPrivate::QFileSystemNode *QFileSystemModelPrivate::node(const QS
#if (defined(Q_OS_WIN) && !defined(Q_OS_WINCE)) || defined(Q_OS_SYMBIAN)
{
- if (!pathElements.at(0).contains(QLatin1String(":")))
-#if defined(Q_CC_NOKIAX86)
- {
- // Workaround for bizarre compiler crash.
+ if (!pathElements.at(0).contains(QLatin1String(":"))) {
+ // The reason we express it like this instead of with anonymous, temporary
+ // variables, is to workaround a compiler crash with Q_CC_NOKIAX86.
QString rootPath = QDir(longPath).rootPath();
pathElements.prepend(rootPath);
}
-#else
- pathElements.prepend(QDir(longPath).rootPath());
-#endif
if (pathElements.at(0).endsWith(QLatin1Char('/')))
pathElements[0].chop(1);
}
diff --git a/src/gui/dialogs/qfscompleter_p.h b/src/gui/dialogs/qfscompleter_p.h
index 2e5a674..fde7706 100644
--- a/src/gui/dialogs/qfscompleter_p.h
+++ b/src/gui/dialogs/qfscompleter_p.h
@@ -39,8 +39,8 @@
**
****************************************************************************/
-#ifndef QCOMPLETOR_P_H
-#define QCOMPLETOR_P_H
+#ifndef QFSCOMPLETOR_P_H
+#define QFSCOMPLETOR_P_H
//
// W A R N I N G
@@ -78,5 +78,5 @@ public:
};
#endif // QT_NO_COMPLETER
QT_END_NAMESPACE
-#endif // QCOMPLETOR_P_H
+#endif // QFSCOMPLETOR_P_H