mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Don't show message boxes for assertion failures, since this can lead to crashes when in OnPaint
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1197 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -54,6 +54,9 @@
|
||||
}
|
||||
};
|
||||
|
||||
inline Regex() {}
|
||||
inline Regex(const String& code) { assign(code); }
|
||||
|
||||
void assign(const String& code);
|
||||
inline bool matches(const String& str) const {
|
||||
return regex_search(str.begin(), str.end(), regex);
|
||||
@@ -126,6 +129,9 @@
|
||||
friend class ScriptRegex;
|
||||
};
|
||||
|
||||
inline Regex() {}
|
||||
inline Regex(const String& code) { assign(code); }
|
||||
|
||||
void assign(const String& code);
|
||||
inline bool matches(const String& str) const {
|
||||
return regex.Matches(str);
|
||||
|
||||
Reference in New Issue
Block a user