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

List:       kde-commits
Subject:    Re: kdelibs/kdeui
From:       Reginald Stadlbauer <reggie () trolltech ! com>
Date:       2000-11-22 16:18:58
[Download RAW message or body]

On Wednesday 22 November 2000 16:06, Simon Hausmann wrote:
> On Wed, Nov 22, 2000 at 03:59:28PM +0000, CVS by neundorf wrote:
> > kdelibs/kdeui klistview.h,1.61,1.62
> > Author: neundorf
> > Wed Nov 22 15:59:28 UTC 2000
> >
> > Modified Files:
> > 	klistview.h
> > Log Message:
> >
> > I am sure I committed these changes some days ago, but it seems something
> > must have gone wrong, I can't find it in the logs, hmm.
> > Well, now here comes finally the enhanced konqySelectionMode. Please
> > update also konqueror/listview/konq_listviewwidget.cc to see how it
> > works.
> >
> > Btw. what does the "1" in
> > bool someBool:1;
> > mean ?
>
> It's a bitfield, telling the compiler to allocate 1 (in this
> very case) bits for the specified variable. Saves memory :-)

In fact you can save a lot of memory if you use it correctly (have to take 
care in which order you declare the vars). This is esp. important in classes 
like items, where you allocate lot of them. We use that a lot in Qt.

-- 
Reggie (reggie@trolltech.com)

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

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