On 24.06.2010 12:42, Niklas Nebel wrote:
On 06/24/10 12:29, Mathias Bauer wrote:
The idea is so good that someone is already working on it. :-)
There is ongoing work to replace a lot of ancient types like BOOL,
USHORT etc. by sal_... types, with the exception that BOOL/FASTBOOl
will be replaced by bool.
"BOOL -> bool" will cause problems. Memory usage for "new BOOL[n]",
mixed use with sal_Bool (pointers, references), the occasional "special"
value (SfxChildWinInfo::bVisible). Shouldn't we go the safe way and
change BOOL to sal_Bool instead?
In result I expect that most "BOOL" can be replaced by "bool", while
some of them will become "sal_Bool". The misused "BOOLS" that in fact
are 8 Bit integer variables(*) IMHO should become a sal_uInt8/16 just to
show that they are *not* boolean.
Anyway the change from BOOL to whatever is nothing that can be done just
with a script. That's different for e.g. USHORT.
Regards,
Mathias
(*) The famous cases where a "BOOL" parameter was used as an 8 Bit
integer to keep (formal) compatibility.
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]