diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2022-01-31 20:09:58 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2022-01-31 20:09:58 +1100 |
commit | 3e7c9e7e4ddc4c59ec50301227e473fb4049a1d1 (patch) | |
tree | e8537ec223712d230c6bf8cbd541771c5e0ea3a6 /win32 | |
parent | 6b3871584c3f32a8c9bd603b03c255ba01ab5059 (diff) | |
download | scintilla-mirror-3e7c9e7e4ddc4c59ec50301227e473fb4049a1d1.tar.gz |
Place CaseFolderDBCS in unnamed namespace to avoid one definition rule warnings
(ctuOneDefinitionRuleViolation) from Cppcheck.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 681f0b42b..471adea7c 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -2393,6 +2393,8 @@ void ScintillaWin::NotifyDoubleClick(Point pt, KeyMod modifiers) { MAKELPARAM(pt.x, pt.y)); } +namespace { + class CaseFolderDBCS : public CaseFolderTable { // Allocate the expandable storage here so that it does not need to be reallocated // for each call to Fold. @@ -2452,6 +2454,8 @@ public: } }; +} + std::unique_ptr<CaseFolder> ScintillaWin::CaseFolderForEncoding() { const UINT cpDest = CodePageOfDocument(); if (cpDest == CpUtf8) { |