mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
minor tweaks
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user