aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-03-04 08:20:05 +1100
committerZufu Liu <unknown>2022-03-04 08:20:05 +1100
commitf3e4f3579a6c9ad620cf00ad951cc97cd59be365 (patch)
treea7d1229e4d606351c44919383847b6f7a8859a65
parent66a542ff4f184ef10990c2dbaa0877cfe3a493bc (diff)
downloadscintilla-mirror-f3e4f3579a6c9ad620cf00ad951cc97cd59be365.tar.gz
Feature [feature-requests:#1432] Simplify CallTip::SetForeBack with pass by value.
-rw-r--r--src/CallTip.cxx2
-rw-r--r--src/CallTip.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 0596214bf..4742f66e4 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -340,7 +340,7 @@ bool CallTip::UseStyleCallTip() const noexcept {
// It might be better to have two access functions for this and to use
// them for all settings of colours.
-void CallTip::SetForeBack(const ColourRGBA &fore, const ColourRGBA &back) noexcept {
+void CallTip::SetForeBack(ColourRGBA fore, ColourRGBA back) noexcept {
colourBG = back;
colourUnSel = fore;
}
diff --git a/src/CallTip.h b/src/CallTip.h
index 3f0e4f801..f8d294651 100644
--- a/src/CallTip.h
+++ b/src/CallTip.h
@@ -89,7 +89,7 @@ public:
bool UseStyleCallTip() const noexcept;
// Modify foreground and background colours
- void SetForeBack(const ColourRGBA &fore, const ColourRGBA &back) noexcept;
+ void SetForeBack(ColourRGBA fore, ColourRGBA back) noexcept;
};
}