Skip to content
Permalink
Browse files
Fix build
  • Loading branch information
nyalldawson committed May 20, 2021
1 parent 72a57b2 commit a03466834d68531aea975bf9401d0e5189f87ebf
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsfileutils.cpp
@@ -22,7 +22,7 @@
#include <QSet>
#include <QDirIterator>

#ifdef Q_OS_WIN
#ifdef MSVC
#include <Windows.h>
#include <ShlObj.h>
#pragma comment(lib,"Shell32.lib")
@@ -269,7 +269,7 @@ QStringList QgsFileUtils::findFile( const QString &file, const QString &basePath
return foundFiles;
}

#ifdef Q_OS_WIN
#ifdef MSVC
std::unique_ptr< wchar_t[] > pathToWChar( const QString &path )
{
const QString nativePath = QDir::toNativeSeparators( path );
@@ -283,7 +283,7 @@ std::unique_ptr< wchar_t[] > pathToWChar( const QString &path )

QgsFileUtils::DriveType QgsFileUtils::driveType( const QString &path )
{
#ifdef Q_OS_WIN
#ifdef MSVC
auto pathType = [ = ]( const QString & path ) -> DriveType
{
std::unique_ptr< wchar_t[] > pathArray = pathToWChar( path );

0 comments on commit a034668

Please sign in to comment.