упс не успел удалить пост йа дебил)
может так ?
C++ |
1
2
3
4
5
6
| void AddCache(const std::string& src, const SColor& col)
{
if(col == mListColor.back() && mListString.size()!=0) { mListString.back() +=src; return; }
mListColor.push_back(col); mListString.push_back(src);
} |
|