From 3e7c9e7e4ddc4c59ec50301227e473fb4049a1d1 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 31 Jan 2022 20:09:58 +1100 Subject: Place CaseFolderDBCS in unnamed namespace to avoid one definition rule warnings (ctuOneDefinitionRuleViolation) from Cppcheck. --- win32/ScintillaWin.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win32') 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 ScintillaWin::CaseFolderForEncoding() { const UINT cpDest = CodePageOfDocument(); if (cpDest == CpUtf8) { -- cgit v1.2.3