Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Maciej,

On Wed, Nov 07, 2012 at 04:41:04PM +0100, Maciej Rumianowski wrote:
I've started to work on the *Bug
34465*<https://bugs.freedesktop.org/show_bug.cgi?id=34465>i

awesome!

and I have some questions:

1) What do you suggest to find all places where Put( const SfxPoolItem&,
USHORT nWhich) is used?
    I came up with idea to make function private and fix all places where
g++ gives error. Do you have better idea?

Thats how I would go about it, yes.

2) Is it a good idea to make a special clone method in SfxPoolItem, such as

virtual SfxPoolItem*     CloneAtWhich( sal_uInt16 nNewWhich, SfxItemPool
*pPool = 0 ) const
                             { SfxPoolItem *pItem = Clone( pPool );
pItem->SetWhich( nNewWhich );
                                 return pItem; }

Great idea! Sounds good to me, go ahead, IIRC there are quite a lot of those in
editeng for example.

Best,

Bjoern

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.