aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-04-08 10:05:11 +1000
committerNeil <nyamatongwe@gmail.com>2022-04-08 10:05:11 +1000
commit8a44ef9acfda0ec46a541f0be56333eb5cf6b0ff (patch)
tree5a916f02eeb2d7ae00412175458291c9934d585d /qt
parenta1961d248ac5521cea7bd22e4d7e2e203bf2d361 (diff)
downloadscintilla-mirror-8a44ef9acfda0ec46a541f0be56333eb5cf6b0ff.tar.gz
Feature [feature-requests:#1389] Initialize CaseFolderTable to ASCII so
subclasses do not need to call StandardASCII. Avoid some lint warnings.
Diffstat (limited to 'qt')
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp
index c1276adc1..24c97013e 100644
--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -557,7 +557,6 @@ class CaseFolderDBCS : public CaseFolderTable {
QTextCodec *codec;
public:
explicit CaseFolderDBCS(QTextCodec *codec_) : codec(codec_) {
- StandardASCII();
}
size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) override {
if ((lenMixed == 1) && (sizeFolded > 0)) {
@@ -590,7 +589,6 @@ std::unique_ptr<CaseFolder> ScintillaQt::CaseFolderForEncoding()
if (charSetBuffer) {
if (pdoc->dbcsCodePage == 0) {
std::unique_ptr<CaseFolderTable> pcf = std::make_unique<CaseFolderTable>();
- pcf->StandardASCII();
QTextCodec *codec = QTextCodec::codecForName(charSetBuffer);
// Only for single byte encodings
for (int i=0x80; i<0x100; i++) {