mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Make code adhere to C++98 (WIP)
This commit is contained in:
parent
8db9755d1e
commit
6e499e2cc5
13 changed files with 96 additions and 89 deletions
|
|
@ -47,13 +47,13 @@ NodeStateMessage::NodeStateMessage (void *buf, size_t len)
|
|||
, _write (false)
|
||||
{
|
||||
try {
|
||||
std::string s { static_cast<char *>(buf), len };
|
||||
std::string s (static_cast<char *>(buf), len);
|
||||
|
||||
std::istringstream is { s };
|
||||
std::istringstream is (s);
|
||||
pt::ptree root;
|
||||
pt::read_json (is, root);
|
||||
|
||||
_state = NodeState { root.get<std::string> ("node") };
|
||||
_state = NodeState (root.get<std::string> ("node"));
|
||||
|
||||
pt::ptree addr = root.get_child ("addr", pt::ptree ());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue