wasm: fix warning in createDirectoryWithParents for "/"

Change-Id: I6cd17ef9dd7ba26cbb8969817f2bcf83cc0ec24d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Even Oscar Andersen 2025-04-23 07:52:53 +02:00
parent 3f5023aada
commit 6295e78ade

View File

@ -1198,7 +1198,7 @@ auto QFileSystemEngine::cloneFile(int srcfd, int dstfd, const QFileSystemMetaDat
static QSystemError createDirectoryWithParents(const QByteArray &path, mode_t mode)
{
#ifdef Q_OS_WASM
if (path == '/')
if (path == "/")
return {};
#endif