Replaced for-cycle to std::transform in generateCross function
This commit is contained in:
@@ -248,9 +248,14 @@ void generateCross(GridType &grid, const DictType &dict, std::vector<wxString> &
|
|||||||
std::reverse(words_trans_out.begin(), words_trans_out.end());
|
std::reverse(words_trans_out.begin(), words_trans_out.end());
|
||||||
BackedCharsTransType bctt = getFromCharsTransed(trans_type);
|
BackedCharsTransType bctt = getFromCharsTransed(trans_type);
|
||||||
words_out.clear();
|
words_out.clear();
|
||||||
for (auto it = words_trans_out.begin(); it != words_trans_out.end(); ++it){
|
words_out.resize(words_trans_out.size());
|
||||||
words_out.push_back(getFromTransed(*it, bctt));
|
std::transform(
|
||||||
}
|
words_trans_out.begin(),
|
||||||
|
words_trans_out.end(),
|
||||||
|
words_out.begin(), [bctt](const TransedWord &tw){
|
||||||
|
return getFromTransed(tw, bctt);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CROSSGEN_HPP
|
#endif // CROSSGEN_HPP
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ CurrentFileName :=
|
|||||||
CurrentFilePath :=
|
CurrentFilePath :=
|
||||||
CurrentFileFullPath :=
|
CurrentFileFullPath :=
|
||||||
User :=Aleksey Lobanov
|
User :=Aleksey Lobanov
|
||||||
Date :=14/06/15
|
Date :=15/06/15
|
||||||
CodeLitePath :="/home/alex/.codelite"
|
CodeLitePath :="/home/alex/.codelite"
|
||||||
LinkerName :=/usr/bin/g++-4.8
|
LinkerName :=/usr/bin/g++-4.8
|
||||||
SharedObjectLinkerName :=/usr/bin/g++-4.8 -shared -fPIC
|
SharedObjectLinkerName :=/usr/bin/g++-4.8 -shared -fPIC
|
||||||
|
|||||||
Reference in New Issue
Block a user