From 91809b7ad09ca081a06b4ab4a70649d622fedd60 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 4 Mar 2002 06:55:34 +0000 Subject: Fixed Borland warning. --- src/Editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 5e648167d..b73576dd8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -112,14 +112,14 @@ void LineLayout::SetBracesHighlight(Range rangeLine, Position braces[], int braceOffset = braces[0] - rangeLine.start; if (braceOffset < numCharsInLine) { bracePreviousStyles[0] = styles[braceOffset]; - styles[braceOffset] = static_cast(bracesMatchStyle); + styles[braceOffset] = bracesMatchStyle; } } if (rangeLine.ContainsCharacter(braces[1])) { int braceOffset = braces[1] - rangeLine.start; if (braceOffset < numCharsInLine) { bracePreviousStyles[1] = styles[braceOffset]; - styles[braceOffset] = static_cast(bracesMatchStyle); + styles[braceOffset] = bracesMatchStyle; } } if ((braces[0] >= rangeLine.start && braces[1] <= rangeLine.end) || @@ -1899,8 +1899,8 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { Range rangeLine(pdoc->LineStart(lineDoc), pdoc->LineStart(lineDoc + 1)); // Highlight the current braces if any - ll->SetBracesHighlight(rangeLine, braces, - bracesMatchStyle, highlightGuideColumn * vs.spaceWidth); + ll->SetBracesHighlight(rangeLine, braces, static_cast(bracesMatchStyle), + highlightGuideColumn * vs.spaceWidth); // Draw the line DrawLine(surface, vs, lineDoc, visibleLine, xStart, rcLine, ll, subLine); -- cgit v1.2.3