common/str_list: Make unused return value void.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
This commit is contained in:
Tommi Virtanen 2011-11-16 13:40:02 -08:00 committed by Tommi Virtanen
parent 2bae3506b6
commit 0f9a06051c
2 changed files with 4 additions and 8 deletions
src

View File

@ -44,7 +44,7 @@ static bool get_next_token(const std::string &s, size_t& pos, string& token)
return true;
}
bool get_str_list(const std::string& str, std::list<string>& str_list)
void get_str_list(const std::string& str, std::list<string>& str_list)
{
size_t pos = 0;
string token;
@ -58,11 +58,9 @@ bool get_str_list(const std::string& str, std::list<string>& str_list)
}
}
}
return true;
}
bool get_str_set(const std::string& str, std::set<std::string>& str_set)
void get_str_set(const std::string& str, std::set<std::string>& str_set)
{
size_t pos = 0;
string token;
@ -76,6 +74,4 @@ bool get_str_set(const std::string& str, std::set<std::string>& str_set)
}
}
}
return true;
}

View File

@ -5,9 +5,9 @@
#include <list>
#include <set>
extern bool get_str_list(const std::string& str,
extern void get_str_list(const std::string& str,
std::list<std::string>& str_list);
extern bool get_str_set(const std::string& str,
extern void get_str_set(const std::string& str,
std::set<std::string>& str_list);