From d1f3f7f79349b947ecd0c26cdab48830450160cc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 20 Sep 2003 04:37:44 +0000 Subject: Formatting, dates. --- src/Editor.cxx | 10 +++++++--- src/KeyMap.cxx | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index c722f80ad..f3d359a7b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -502,7 +502,9 @@ const char *ControlCharacterString(unsigned char ch) { } } -// Convenience class to ensure LineLayout objects are always disposed. +/** + * Convenience class to ensure LineLayout objects are always disposed. + */ class AutoLineLayout { LineLayoutCache &llc; LineLayout *ll; @@ -688,8 +690,10 @@ int Editor::PositionFromLineX(int lineDoc, int x) { return retVal; } -// If painting then abandon the painting because a wider redraw is needed. -// Return true if calling code should stop drawing +/** + * If painting then abandon the painting because a wider redraw is needed. + * @return true if calling code should stop drawing. + */ bool Editor::AbandonPaint() { if ((paintState == painting) && !paintingAllText) { paintState = paintAbandoned; diff --git a/src/KeyMap.cxx b/src/KeyMap.cxx index f15842af6..6164a1bb0 100644 --- a/src/KeyMap.cxx +++ b/src/KeyMap.cxx @@ -2,7 +2,7 @@ /** @file KeyMap.cxx ** Defines a mapping between keystrokes and commands. **/ -// Copyright 1998-2001 by Neil Hodgson +// Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include "Platform.h" @@ -15,7 +15,7 @@ KeyMap::KeyMap() : kmap(0), len(0), alloc(0) { for (int i = 0; MapDefault[i].key; i++) { AssignCmdKey(MapDefault[i].key, MapDefault[i].modifiers, - MapDefault[i].msg); + MapDefault[i].msg); } } @@ -35,7 +35,7 @@ void KeyMap::AssignCmdKey(int key, int modifiers, unsigned int msg) { KeyToCommand *ktcNew = new KeyToCommand[alloc + 5]; if (!ktcNew) return; - for (int k=0;k