Lambda captures clean up, plus other minor clean ups.

This commit is contained in:
Martín Lucas Golini
2024-02-17 18:19:55 -03:00
parent b2a5b37802
commit 36c91989d3
41 changed files with 180 additions and 169 deletions

View File

@@ -93,7 +93,7 @@ void CommandPalette::asyncFuzzyMatch( const std::string& match, const size_t& ma
if ( !mCurModel )
return;
mPool->run( [&, match, max, res]() {
mPool->run( [this, match, max, res]() {
const std::vector<std::vector<std::string>>& cmdPalette =
mCurModel.get() == mBaseModel.get() ? mCommandPalette : mCommandPaletteEditor;
res( fuzzyMatch( cmdPalette, match, max ) );