[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: konsole/TEScreen.C: looks weird ...
From:       Dirk Mueller <mueller () kde ! org>
Date:       2001-06-15 12:08:52
[Download RAW message or body]

On Fre, 15 Jun 2001, Guillaume Laurent wrote:

> >     image(new ca[(lines+1)*columns]),           <----- this versus
> >     image      = (ca*) malloc((lines+1)*columns*sizeof(ca)); <---------
> 
> 'new' takes care of the size automatically.

great, still it shouldn't be allocated twice and with different allocator 
functions (new <-> malloc)


Dirk
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic