Skip to content
Permalink
Browse files

Merge pull request #8476 from lbartoletti/cast_time_project

On some architectures, time_t is not equal to int64
  • Loading branch information
m-kuhn committed Nov 14, 2018
2 parents 08544fb + 1d379ae commit 61066281b5784ef99c2e87c0859edf7f6124dc8e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsproject.cpp
@@ -1888,7 +1888,7 @@ bool QgsProject::writeProjectFile( const QString &filename )
}

QFileInfo fi( fileName() );
struct utimbuf tb = { fi.lastRead().toTime_t(), fi.lastModified().toTime_t() };
struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toSecsSinceEpoch() ), static_cast<time_t>( fi.lastModified().toSecsSinceEpoch() ) };
utime( backupFile.fileName().toUtf8().constData(), &tb );
}

0 comments on commit 6106628

Please sign in to comment.
You can’t perform that action at this time.