summaryrefslogtreecommitdiff
path: root/src/libs/utils/filecrumblabel.cpp
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2017-12-04 19:01:37 +0100
committerRobert Loehning <robert.loehning@qt.io>2018-01-08 13:43:01 +0000
commit8e6fa26c839ae25b236a94344e7e529dabefb3de (patch)
tree861e99b05c98362d76674b6df17ccd215d956c27 /src/libs/utils/filecrumblabel.cpp
parente3b1259004a8616d045ce42e6cb5a5c5382bca4c (diff)
downloadqt-creator-8e6fa26c839ae25b236a94344e7e529dabefb3de.tar.gz
Fix warning about supposed out-of-bounds access
Change-Id: I996dafc272076fe62209ebee5c44f7d9caf19302 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/filecrumblabel.cpp')
-rw-r--r--src/libs/utils/filecrumblabel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/filecrumblabel.cpp b/src/libs/utils/filecrumblabel.cpp
index 8ea4ffde65..a4bbe37c44 100644
--- a/src/libs/utils/filecrumblabel.cpp
+++ b/src/libs/utils/filecrumblabel.cpp
@@ -67,7 +67,8 @@ void FileCrumbLabel::setPath(const FileName &path)
}
current = current.parentDir();
}
- const auto pathSeparator = QLatin1String(HostOsInfo::isWindowsHost() ? "&nbsp;\\ " : "&nbsp;/ ");
+ const auto pathSeparator = HostOsInfo::isWindowsHost() ? QLatin1String("&nbsp;\\ ")
+ : QLatin1String("&nbsp;/ ");
const QString prefix = HostOsInfo::isWindowsHost() ? QString("\\ ") : QString("/ ");
setText(prefix + links.join(pathSeparator));
}