mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
common/str_list: Make unused return value void.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
This commit is contained in:
parent
2bae3506b6
commit
0f9a06051c
src
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user