diff options
author | Christopher Arndt <chris@chrisarndt.de> | 2018-10-21 00:56:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-21 01:08:09 +0200 |
commit | 47d341434e1cdcca8b7c359bc01c9032898123dc (patch) | |
tree | 888cd9ce6002f47be5b4b9bb1d2a5b0fa4ea53e5 /libs/ardour/vst_plugin.cc | |
parent | 8e25b4d193fb4fb9efbf7a7145d27879dcd668be (diff) |
Avoid use of 'std::to_string
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 9832b81b72..e150f7bc36 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -540,8 +540,6 @@ VSTPlugin::do_save_preset (string name) sha1_result_hash (&s, hash); string const uri = string_compose (X_("VST:%1:x%2"), unique_id (), hash); - string const str_ver = std::to_string (version ()); - string const num_params = std::to_string (parameter_count ()); if (_plugin->flags & 32 /* effFlagsProgramsChunks */) { p = new XMLNode (X_("ChunkPreset")); @@ -550,9 +548,9 @@ VSTPlugin::do_save_preset (string name) } p->set_property (X_("uri"), uri); - p->set_property (X_("version"), str_ver); + p->set_property (X_("version"), version ()); p->set_property (X_("label"), name); - p->set_property (X_("numParams"), num_params); + p->set_property (X_("numParams"), parameter_count ()); if (_plugin->flags & 32) { |