GDIPlusX: Use of REPLICATE and defines

Topics: General
Developer
Nov 19, 2007 at 6:50 PM
I have noticed inconsistent use of REPLICATE in the code, i.e. from system.drawing.prg:

m.lqRect = REPLICATE(CHR(0), 16)
m.lcRect = REPLICATE(BINTOC(0.0,"n"),4)
DEFINE EMPTY_RECT REPLICATE(CHR(0),16)
lcStruct = REPLICATE(BINTOC(0.0,"f"),4)

This 2 are 4 lines apart:

REPLICATE(BINTOC(0,"4rs"),4)
REPLICATE(BINTOC(0,"n"),4)

All this lines are trying to get an empty Rect structure, the should all be replaced by:

m.lcRect = EMPTY_RECTANGLE

EMPTY_RECTANGLE is defined in system.drawing.h


Developer
Nov 26, 2007 at 11:00 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.