diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CellBuffer.cxx | 2 | ||||
-rw-r--r-- | src/ContractionState.cxx | 2 | ||||
-rw-r--r-- | src/Decoration.cxx | 2 | ||||
-rw-r--r-- | src/PerLine.cxx | 2 | ||||
-rw-r--r-- | src/SplitVector.h | 3 |
5 files changed, 9 insertions, 2 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 872616c21..316940621 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -10,6 +10,8 @@ #include <stdlib.h> #include <stdarg.h> +#include <algorithm> + #include "Platform.h" #include "Scintilla.h" diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 957fd177b..0636d90ea 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -7,6 +7,8 @@ #include <string.h> +#include <algorithm> + #include "Platform.h" #include "SplitVector.h" diff --git a/src/Decoration.cxx b/src/Decoration.cxx index b489c3c02..4594a3a7a 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -9,6 +9,8 @@ #include <stdlib.h> #include <stdarg.h> +#include <algorithm> + #include "Platform.h" #include "Scintilla.h" diff --git a/src/PerLine.cxx b/src/PerLine.cxx index a903d6f5f..8eceae2ab 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -7,6 +7,8 @@ #include <string.h> +#include <algorithm> + #include "Platform.h" #include "Scintilla.h" diff --git a/src/SplitVector.h b/src/SplitVector.h index 0ccf6c9f4..502101b6c 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -174,8 +174,7 @@ public: } RoomFor(insertLength); GapTo(position); - for (int i = 0; i < insertLength; i++) - body[part1Length + i] = v; + std::fill(&body[part1Length], &body[part1Length + insertLength], v); lengthBody += insertLength; part1Length += insertLength; gapLength -= insertLength; |