From b2045b6a08efc78906db21baa0dd1c44cc444d03 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Sat, 16 Jan 2021 14:28:04 +0100 Subject: [PATCH] fix https://github.com/ossia/libossia/issues/678 and probably also https://github.com/ossia/libossia/issues/677 --- src/ossia-max/src/object_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ossia-max/src/object_base.cpp b/src/ossia-max/src/object_base.cpp index 2d738dc1a18..04e50cb9886 100644 --- a/src/ossia-max/src/object_base.cpp +++ b/src/ossia-max/src/object_base.cpp @@ -150,9 +150,9 @@ std::vector> object_base::find_or_create_matchers() size_t pos = addr.find(":/"); if (pos == std::string::npos) return {}; - ossia::string_view prefix = addr.substr(0,pos); + std::string prefix = addr.substr(0,pos); // remove 'device_name:/' prefix - ossia::string_view osc_name = addr.substr(pos+2); + std::string osc_name = addr.substr(pos+2); bool is_prefix_pattern = ossia::traversal::is_pattern(prefix); bool is_osc_name_pattern = ossia::traversal::is_pattern(osc_name);