diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 21:32:37 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 21:32:37 +0200 |
commit | 5d13ad11340a73214642245f4418aec9f197186d (patch) | |
tree | 801ffd9e2c32417dfb26d16db2cbcc0e6b52ef0c /ingen | |
parent | 017982ff9d5d19d5524ebf010ea74540206c0f94 (diff) | |
download | ingen-5d13ad11340a73214642245f4418aec9f197186d.tar.gz ingen-5d13ad11340a73214642245f4418aec9f197186d.tar.bz2 ingen-5d13ad11340a73214642245f4418aec9f197186d.zip |
Fix copy/paste of ports
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/ClashAvoider.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ingen/ClashAvoider.hpp b/ingen/ClashAvoider.hpp index 23656349..6032351a 100644 --- a/ingen/ClashAvoider.hpp +++ b/ingen/ClashAvoider.hpp @@ -41,6 +41,16 @@ public: bool exists(const Raul::Path& path) const; + /** Adjust a new label by increasing the numeric suffix if any. + * + * @param old_path The old path that was mapped with `map_path()` + * @param new_path The new path that `old_path` was mapped to + * @param name The old name. + */ + static std::string adjust_name(const Raul::Path& old_path, + const Raul::Path& new_path, + std::string name); + private: typedef std::map<Raul::Path, unsigned> Offsets; typedef std::map<Raul::Path, Raul::Path> SymbolMap; |