From 947d0a3b4031be0e6881b12e92df751675faabe8 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 26 Oct 2021 08:12:40 +1100 Subject: Don't set default values for parameters when overriding, only in base class. --- qt/ScintillaEditBase/PlatQt.cpp | 2 +- qt/ScintillaEditBase/ScintillaQt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'qt') 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; -- cgit v1.2.3