aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-10-26 08:12:40 +1100
committerNeil <nyamatongwe@gmail.com>2021-10-26 08:12:40 +1100
commit947d0a3b4031be0e6881b12e92df751675faabe8 (patch)
tree5a045dc8211f4f208062b405d02ae28969d504b5 /qt
parenta892e1ffca62df1b8400e339750c91c4fc6c65bd (diff)
downloadscintilla-mirror-947d0a3b4031be0e6881b12e92df751675faabe8.tar.gz
Don't set default values for parameters when overriding, only in base class.
Diffstat (limited to 'qt')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp2
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index e346acb9a..96b05a855 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -944,7 +944,7 @@ public:
PRectangle GetDesiredRect() override;
int CaretFromEdge() override;
void Clear() noexcept override;
- void Append(char *s, int type = -1) override;
+ void Append(char *s, int type) override;
int Length() override;
void Select(int n) override;
int GetSelection() override;
diff --git a/qt/ScintillaEditBase/ScintillaQt.h b/qt/ScintillaEditBase/ScintillaQt.h
index df4c653cd..858c20c01 100644
--- a/qt/ScintillaEditBase/ScintillaQt.h
+++ b/qt/ScintillaEditBase/ScintillaQt.h
@@ -146,7 +146,7 @@ private:
std::string CaseMapString(const std::string &s, CaseMapping caseMapping) override;
void CreateCallTipWindow(PRectangle rc) override;
- void AddToPopUp(const char *label, int cmd = 0, bool enabled = true) override;
+ void AddToPopUp(const char *label, int cmd, bool enabled) override;
sptr_t WndProc(Scintilla::Message iMessage, uptr_t wParam, sptr_t lParam) override;
sptr_t DefWndProc(Scintilla::Message iMessage, uptr_t wParam, sptr_t lParam) override;