mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-09 06:11:45 +02:00
removed depency to boost lexical cast and boost algorithm
This commit is contained in:
parent
c8e58f272f
commit
84f9dd2d7a
7 changed files with 26 additions and 8 deletions
|
@ -17,12 +17,12 @@
|
|||
***/
|
||||
|
||||
#include <vector>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "sampleFormat.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/log.h"
|
||||
#include <sstream>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
@ -58,7 +58,7 @@ string SampleFormat::getFormat() const
|
|||
void SampleFormat::setFormat(const std::string& format)
|
||||
{
|
||||
std::vector<std::string> strs;
|
||||
boost::split(strs, format, boost::is_any_of(":"));
|
||||
strs = split(format, ':');
|
||||
if (strs.size() == 3)
|
||||
setFormat(
|
||||
std::stoul(strs[0]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue