From 0aef439b189f9329b1476b10f3462de1bbf6f527 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 19 Dec 2001 10:20:17 +0000 Subject: Fixed some warnings from Borland. --- src/Editor.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 10321a29f..1f7588a28 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1061,7 +1061,7 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou // +3 For a blank on front and rounded edge each side: ll.positions[charInLine + 1] = surface->WidthText(ctrlCharsFont, ctrlChar, strlen(ctrlChar)) + 3; } else { - char cc[2] = { controlCharSymbol, '\0' }; + char cc[2] = { static_cast(controlCharSymbol), '\0' }; surface->MeasureWidths(ctrlCharsFont, cc, 1, ll.positions + startseg + 1); } @@ -1295,7 +1295,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis rcSegment.top + vsDraw.maxAscent, ctrlChar, strlen(ctrlChar), textBack, textFore); } else { - char cc[2] = { controlCharSymbol, '\0' }; + char cc[2] = { static_cast(controlCharSymbol), '\0' }; surface->DrawTextNoClip(rcSegment, ctrlCharsFont, rcSegment.top + vsDraw.maxAscent, cc, 1, textBack, textFore); @@ -4913,7 +4913,6 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETCONTROLCHARSYMBOL: return controlCharSymbol; - break; case SCI_STARTRECORD: recordingMacro = true; -- cgit v1.2.3