mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-09 13:14:02 +02:00
erase -> pop_back
This commit is contained in:
parent
6013549ef8
commit
92fd317a84
@ -503,8 +503,8 @@ void SelectionTab::select(int position)
|
|||||||
{
|
{
|
||||||
std::vector<std::string> filetree;
|
std::vector<std::string> filetree;
|
||||||
boost::split(filetree, curFolder, boost::is_any_of("/"));
|
boost::split(filetree, curFolder, boost::is_any_of("/"));
|
||||||
filetree.erase(filetree.end());
|
filetree.pop_back();
|
||||||
filetree.erase(filetree.end());
|
filetree.pop_back();
|
||||||
curFolder = filetree.size() > 0 ? boost::algorithm::join(filetree, "/") + "/" : "";
|
curFolder = filetree.size() > 0 ? boost::algorithm::join(filetree, "/") + "/" : "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user