apply const-iterator as possible.
Change-Id: Ie88a72d9ee9c150801670b7b65a533ef2083bfa9
}
if (this->_viewList.size() > 0) {
- for (auto it = this->_viewList.begin(); it != this->_viewList.end(); it++) {
+ for (auto it = this->_viewList.cbegin(); it != this->_viewList.cend(); it++) {
if (before == *it) {
this->_viewList.insert(it, view);
return UI_VIEWMGR_ERROR_NONE;
return nullptr;
}
- auto it = this->_viewList.begin();
+ auto it = this->_viewList.cbegin();
advance(it, idx);
set_last_result(UI_VIEWMGR_ERROR_NONE);