diff options
author | Robert Loehning <robert.loehning@qt.io> | 2017-12-04 19:01:37 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2018-01-08 13:43:01 +0000 |
commit | 8e6fa26c839ae25b236a94344e7e529dabefb3de (patch) | |
tree | 861e99b05c98362d76674b6df17ccd215d956c27 /src/libs/utils/filecrumblabel.cpp | |
parent | e3b1259004a8616d045ce42e6cb5a5c5382bca4c (diff) | |
download | qt-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.cpp | 3 |
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() ? " \\ " : " / "); + const auto pathSeparator = HostOsInfo::isWindowsHost() ? QLatin1String(" \\ ") + : QLatin1String(" / "); const QString prefix = HostOsInfo::isWindowsHost() ? QString("\\ ") : QString("/ "); setText(prefix + links.join(pathSeparator)); } |