mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-09 20:57:43 +02:00
move string utils in namespace utils::string
This commit is contained in:
parent
b8f69ce58f
commit
fa3f78b08d
12 changed files with 178 additions and 133 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "common/daemon.h"
|
||||
#endif
|
||||
#include "common/timeDefs.h"
|
||||
#include "common/utils/string_utils.h"
|
||||
#include "common/signalHandler.h"
|
||||
#include "common/snapException.h"
|
||||
#include "common/sampleFormat.h"
|
||||
|
@ -157,7 +158,7 @@ int main(int argc, char* argv[])
|
|||
if (userValue.getValue().empty())
|
||||
std::invalid_argument("user must not be empty");
|
||||
|
||||
vector<string> user_group = split(userValue.getValue(), ':');
|
||||
vector<string> user_group = utils::string::split(userValue.getValue(), ':');
|
||||
user = user_group[0];
|
||||
if (user_group.size() > 1)
|
||||
group = user_group[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue