From 30cd4b992a8804bd974d57adad3a318df945f3e9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 8 Sep 2003 12:04:15 +0000 Subject: Comments and fixes from Philippe. --- src/XPM.cxx | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/XPM.cxx b/src/XPM.cxx index c3f66c2e4..03b151dd4 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -1,6 +1,6 @@ // Scintilla source code edit control /** @file XPM.cxx - ** Define a class that holds data in the X Pixmap (XPM) format, + ** Define a class that holds data in the X Pixmap (XPM) format. **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. @@ -33,7 +33,7 @@ static size_t MeasureLength(const char *s) { ColourAllocated XPM::ColourFromCode(int ch) { return colourCodeTable[ch]->allocated; #ifdef SLOW - for (int i=0;iGetId() == id) { set[i]->Init(textForm); return; } } - // No present, so add to end + // Not present, so add to end XPM *pxpm = new XPM(textForm); if (pxpm) { pxpm->SetId(id); pxpm->CopyDesiredColours(); if (len == maximum) { - int lenNew = len + 100; - XPM **setNew = new XPM *[lenNew]; - for (int i=0; iGetId() == id) { return set[i]; } @@ -276,7 +276,7 @@ XPM *XPMSet::Get(int id) { int XPMSet::GetHeight() { if (height < 0) { - for (int i=0; iGetHeight()) { height = set[i]->GetHeight(); } @@ -287,7 +287,7 @@ int XPMSet::GetHeight() { int XPMSet::GetWidth() { if (width < 0) { - for (int i=0; iGetWidth()) { width = set[i]->GetWidth(); } -- cgit v1.2.3