Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 26, 2024
1 parent 80a4797 commit f017b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/utils.hh
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void removeDirectory( string const & directory );
inline QString findFirstExistingFile( std::initializer_list< QString > filePaths )
{
for ( const QString & filePath : filePaths ) {
if ( QFile::exists( filePath ) ) {
if ( QFileInfo::exists( filePath ) ) {
return filePath;
}
}
Expand All @@ -372,7 +372,7 @@ inline std::string findFirstExistingFile( std::initializer_list< std::string > f
{
for ( const std::string & filePath : filePaths ) {
auto fp = QString::fromStdString( filePath );
if ( QFile::exists( fp ) ) {
if ( QFileInfo::exists( fp ) ) {
return filePath;
}
}
Expand All @@ -383,7 +383,7 @@ inline bool anyExistingFile( std::initializer_list< std::string > filePaths )
{
for ( const std::string & filePath : filePaths ) {
auto fp = QString::fromStdString( filePath );
if ( QFile::exists( fp ) ) {
if ( QFileInfo::exists( fp ) ) {
return true;
}
}
Expand Down

0 comments on commit f017b7d

Please sign in to comment.