From 29f72cb83b1565132c075ba815afbaa2b6e421d1 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 22 Apr 2026 09:08:34 +1000 Subject: Rename parameters to avoid clang-tidy readability-suspicious-call-argument warnings. --- src/CellBuffer.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 3d4050633..1eac3f9c2 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -510,15 +510,15 @@ ChangedRange CellBuffer::SetStyles(Sci::Position position, const char *styles, S return cr; } -ChangedRange CellBuffer::SetStyleFor(Sci::Position position, Sci::Position lengthStyle, char styleValue) noexcept { - if (!hasStyles || (position < 0) || (lengthStyle <= 0)) { +ChangedRange CellBuffer::SetStyleFor(Sci::Position position, Sci::Position length, char value) noexcept { + if (!hasStyles || (position < 0) || (length <= 0)) { return {}; } - const Lengths lengths = SplitUpdate(style, position, lengthStyle); - ChangedRange cr = SetBytes(&style[position], styleValue, lengths.length1, position); + const Lengths lengths = SplitUpdate(style, position, length); + ChangedRange cr = SetBytes(&style[position], value, lengths.length1, position); if (lengths.length2) { - const ChangedRange cr2 = SetBytes(&style[position + lengths.length1], styleValue, + const ChangedRange cr2 = SetBytes(&style[position + lengths.length1], value, lengths.length2, position + lengths.length1); cr.Merge(cr2); } -- cgit v1.2.3