aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2022-01-31 20:09:58 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2022-01-31 20:09:58 +1100
commit3e7c9e7e4ddc4c59ec50301227e473fb4049a1d1 (patch)
treee8537ec223712d230c6bf8cbd541771c5e0ea3a6 /gtk
parent6b3871584c3f32a8c9bd603b03c255ba01ab5059 (diff)
downloadscintilla-mirror-3e7c9e7e4ddc4c59ec50301227e473fb4049a1d1.tar.gz
Place CaseFolderDBCS in unnamed namespace to avoid one definition rule warnings
(ctuOneDefinitionRuleViolation) from Cppcheck.
Diffstat (limited to 'gtk')
-rwxr-xr-xgtk/ScintillaGTK.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 5c6161cc2..77a18e442 100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1187,6 +1187,8 @@ const char *ScintillaGTK::CharacterSetID() const {
return ::CharacterSetID(vs.styles[STYLE_DEFAULT].characterSet);
}
+namespace {
+
class CaseFolderDBCS : public CaseFolderTable {
const char *charSet;
public:
@@ -1218,6 +1220,8 @@ public:
}
};
+}
+
std::unique_ptr<CaseFolder> ScintillaGTK::CaseFolderForEncoding() {
if (pdoc->dbcsCodePage == SC_CP_UTF8) {
return std::make_unique<CaseFolderUnicode>();