From 5d13ad11340a73214642245f4418aec9f197186d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Sep 2018 21:32:37 +0200 Subject: Fix copy/paste of ports --- ingen/ClashAvoider.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ingen') 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 Offsets; typedef std::map SymbolMap; -- cgit v1.2.1