Commit ec94e042 authored by Christian Kandeler's avatar Christian Kandeler Committed by hjk

Replace unneeded #ifdef.

Change-Id: I2ff32f7013fc863d998a8317d4c409a9a2c295c1
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 4dfa08c2
...@@ -293,7 +293,7 @@ bool FileUtils::isRelativePath(const QString &path) ...@@ -293,7 +293,7 @@ bool FileUtils::isRelativePath(const QString &path)
{ {
if (path.startsWith(QLatin1Char('/'))) if (path.startsWith(QLatin1Char('/')))
return false; return false;
#ifdef Q_OS_WIN if (HostOsInfo::isWindowsHost()) {
if (path.startsWith(QLatin1Char('\\'))) if (path.startsWith(QLatin1Char('\\')))
return false; return false;
// Unlike QFileInfo, this won't accept a relative path with a drive letter. // Unlike QFileInfo, this won't accept a relative path with a drive letter.
...@@ -301,7 +301,7 @@ bool FileUtils::isRelativePath(const QString &path) ...@@ -301,7 +301,7 @@ bool FileUtils::isRelativePath(const QString &path)
if (path.length() >= 3 && path.at(1) == QLatin1Char(':') && path.at(0).isLetter() if (path.length() >= 3 && path.at(1) == QLatin1Char(':') && path.at(0).isLetter()
&& (path.at(2) == QLatin1Char('/') || path.at(2) == QLatin1Char('\\'))) && (path.at(2) == QLatin1Char('/') || path.at(2) == QLatin1Char('\\')))
return false; return false;
#endif }
return true; return true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment