diff options
| author | Neil <nyamatongwe@gmail.com> | 2026-04-22 09:08:34 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2026-04-22 09:08:34 +1000 |
| commit | 29f72cb83b1565132c075ba815afbaa2b6e421d1 (patch) | |
| tree | 25319f57e2dfb6c9acad7d5fe71f3ecf8303fe43 /src/CellBuffer.cxx | |
| parent | 1d3381851bb6d0283055c19052a95eb48c4e4ac2 (diff) | |
| download | scintilla-mirror-29f72cb83b1565132c075ba815afbaa2b6e421d1.tar.gz | |
Rename parameters to avoid clang-tidy readability-suspicious-call-argument
warnings.
Diffstat (limited to 'src/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |
