Don't assert() check_tagged, that causes assert failures in debug mode for code that works in release

This commit is contained in:
Twan van Laarhoven
2020-09-27 14:02:29 +02:00
parent 04b239322e
commit 7a788c724d
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -774,7 +774,7 @@ void remove_from_stats(KeywordUsageStatistics* stat, const Value* stat_key) {
String KeywordDatabase::expand(const String& text, KeywordExpandOptions const& options) const {
assert(options.combine_script);
assert_tagged(text);
assert_tagged(text, false);
// Clean up usage statistics
remove_from_stats(options.stat, options.stat_key);
@@ -794,7 +794,7 @@ String KeywordDatabase::expand(const String& text, KeywordExpandOptions const& o
// Expand
String result = expand_keywords(tagged, matches, options);
assert_tagged(result);
assert_tagged(result, false);
return result;
}