dbms: better [#METR-11370].

This commit is contained in:
Alexey Milovidov 2014-06-13 01:17:03 +04:00
parent fcc21c5b4c
commit 607485d82a
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ private:
void init();
static NamesAndTypesList::iterator findColumn(const String & name, const NamesAndTypesList & cols);
static NamesAndTypesList::iterator findColumn(const String & name, NamesAndTypesList & cols);
NamesAndTypesList::iterator findColumn(const String & name) { return findColumn(name, columns); }
void removeUnusedColumns();

View File

@ -141,7 +141,7 @@ void ExpressionAnalyzer::init()
}
NamesAndTypesList::iterator ExpressionAnalyzer::findColumn(const String & name, const NamesAndTypesList & cols)
NamesAndTypesList::iterator ExpressionAnalyzer::findColumn(const String & name, NamesAndTypesList & cols)
{
return std::find_if(cols.begin(), cols.end(),
[&](const NamesAndTypesList::value_type & val) { return val.first == name; });