Skip to content

Commit

Permalink
fix windows build (followup 1956503)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 16, 2021
1 parent bdaf65e commit 9f46529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/core/testqgsproject.cpp
Expand Up @@ -104,9 +104,10 @@ void TestQgsProject::testReadPath()
{
QgsProject *prj = new QgsProject;
// this is a bit hacky as we do not really load such project
const QString prefix;
#if defined(Q_OS_WIN)
prefix = "C:";
const QString prefix( "C:" );
#else
const QString prefix;
#endif
prj->setFileName( prefix + "/home/qgis/a-project-file.qgs" ); // not expected to exist
// make sure we work with relative paths!
Expand Down

0 comments on commit 9f46529

Please sign in to comment.