diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 22:47:52 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 22:49:10 +0100 |
commit | 5cd59f10b1ebd5ee628e2cd96af7f1e0d45cbe3f (patch) | |
tree | 6e342a2bfc1375de196620547d8505d15c348785 /src | |
parent | 800672506958b8324bec087643a5830bc156ed72 (diff) | |
download | patchage-5cd59f10b1ebd5ee628e2cd96af7f1e0d45cbe3f.tar.gz patchage-5cd59f10b1ebd5ee628e2cd96af7f1e0d45cbe3f.tar.bz2 patchage-5cd59f10b1ebd5ee628e2cd96af7f1e0d45cbe3f.zip |
Avoid using atoi
Diffstat (limited to 'src')
-rw-r--r-- | src/JackDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index bfc8b8b..b9ae615 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -187,7 +187,7 @@ JackDriver::get_port_info(const jack_port_t* const port) boost::optional<int> order; const std::string order_str = get_property(uuid, JACKEY_ORDER); if (!order_str.empty()) { - order = atoi(order_str.c_str()); + order = std::stoi(order_str); } return {label, type, direction, order, bool(flags & JackPortIsTerminal)}; |