minor tweaks

This commit is contained in:
Garux
2025-09-17 14:49:19 +05:00
parent ce6ff2d0ba
commit 7ddab0634b
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ public:
}
bool isSelected() const {
return std::ranges::any_of( m_selectables, std::identity{}, &ObservedSelectable::isSelected );
return std::ranges::any_of( m_selectables, &ObservedSelectable::isSelected );
}
void setSelected( bool selected ){
for ( auto& selectable : m_selectables )
+1 -1
View File
@@ -142,7 +142,7 @@ static void InitPakFile( ArchiveModules& archiveModules, const char *filename ){
}
inline void pathlist_append_unique( StrList& pathlist, CopiedString path ){
if( std::ranges::none_of( pathlist, [&path]( const CopiedString& str ){ return path_compare( str.c_str(), path.c_str() ) == 0; } ) )
if( std::ranges::none_of( pathlist, [&path]( const CopiedString& str ){ return path_equal( str.c_str(), path.c_str() ); } ) )
pathlist.emplace_back( std::move( path ) );
}