Commit a2070161 authored by Murray Cumming's avatar Murray Cumming
Browse files

Small use of auto.

parent d5dc5eae
......@@ -54,7 +54,7 @@ static std::list<Glib::ustring> ustring_tokenize(const Glib::ustring& msg, const
while(str.find(separators) != Glib::ustring::npos && (nocount? true : count!=maxParts))
{
unsigned int pos = str.find(separators);
auto pos = str.find(separators);
Glib::ustring tmp = str.substr(0, pos);
str = str.erase(0, pos + separators.size());
result.emplace_back(tmp);
......
......@@ -16,9 +16,9 @@ std::list<Glib::ustring> ustring_tokenize(const Glib::ustring& msg, const Glib::
while(str.find(separators) != Glib::ustring::npos && (nocount? true : count!=maxParts))
{
unsigned int pos = str.find(separators);
Glib::ustring tmp = str.substr(0,pos);
str=str.erase(0, pos+separators.size());
auto pos = str.find(separators);
Glib::ustring tmp = str.substr(0, pos);
str=str.erase(0, pos + separators.size());
result.emplace_back(tmp);
count++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment