diff options
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index a5cdf2fb6..9dca92035 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1658,15 +1658,17 @@ const char *BuiltinRegex::SubstituteByPosition(Document* doc, const char *text, #ifndef SCI_OWNREGEX #ifdef SCI_NAMESPACE -namespace Scintilla { -#endif -RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable) { +RegexSearchBase *Scintilla::CreateRegexSearch(CharClassify *charClassTable) { return new BuiltinRegex(charClassTable); } -#ifdef SCI_NAMESPACE +#else + +RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable) { + return new BuiltinRegex(charClassTable); } + #endif #endif |