Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
  • Loading branch information
DoubleSpicy and glassez authored Jan 30, 2025
1 parent 6967e0f commit 8cefbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Path Path::rootItem() const
Path Path::parentPath() const
{
#ifdef Q_OS_WIN
if (this->isUNCPath())
if (isUNCPath())
{
// UNC path checks guarantee path in \\host\drive or \\host\drive\xxx format
const auto rootPath = getUNCRootPathStr();
Expand Down Expand Up @@ -430,7 +430,7 @@ std::size_t qHash(const Path &key, const std::size_t seed)
}

#if defined(Q_OS_WIN)
bool isQStrUNCPath(const QString &path)
bool isUNCPath(const QString &path)
{
// strict format of \\host\drive\folder with no forbidden char to avoid conflict with normal path
if (path.left(2) != uR"(\\)"_s)
Expand Down

0 comments on commit 8cefbd8

Please sign in to comment.