mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
Use PBD::string_to_uint32 in Playlist class instead of boost::lexical_cast
This commit is contained in:
parent
e097e0511f
commit
21077018b8
1 changed files with 1 additions and 7 deletions
|
|
@ -22,8 +22,6 @@
|
|||
#include <algorithm>
|
||||
#include <string>
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include "pbd/types_convert.h"
|
||||
#include "pbd/stateful_diff_command.h"
|
||||
#include "pbd/strsplit.h"
|
||||
|
|
@ -362,11 +360,7 @@ Playlist::_set_sort_id ()
|
|||
} else {
|
||||
string t = _name.val().substr(dot_position + 1);
|
||||
|
||||
try {
|
||||
_sort_id = boost::lexical_cast<int>(t);
|
||||
}
|
||||
|
||||
catch (boost::bad_lexical_cast e) {
|
||||
if (!string_to_uint32 (t, _sort_id)) {
|
||||
_sort_id = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue