[beast: 9/12] BSE: ignore '-' vs '_' when scanning C++ properties
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 9/12] BSE: ignore '-' vs '_' when scanning C++ properties
- Date: Thu, 24 Sep 2015 20:10:01 +0000 (UTC)
commit dce73aa8be918cff14f236016fefa6c1e148ee37
Author: Tim Janik <timj gnu org>
Date: Tue Sep 22 20:09:48 2015 +0200
BSE: ignore '-' vs '_' when scanning C++ properties
bse/bsestorage.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/bse/bsestorage.cc b/bse/bsestorage.cc
index e31f13e..8e8cfe5 100644
--- a/bse/bsestorage.cc
+++ b/bse/bsestorage.cc
@@ -713,7 +713,10 @@ restore_cxx_item_property (BseItem *bitem, BseStorage *self)
// need identifier
if (g_scanner_peek_next_token (scanner) != G_TOKEN_IDENTIFIER)
return SFI_TOKEN_UNMATCHED;
- const String identifier = scanner->next_value.v_identifier;
+ String identifier = scanner->next_value.v_identifier;
+ for (size_t i = 0; i < identifier.size(); i++)
+ if (identifier.data()[i] == '-')
+ identifier[i] = '_';
// find identifier in item, we could search __aida_dir__, but *getting* is simpler
Any any = item->__aida_get__ (identifier);
if (any.kind())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]