Hi Björn,<br><br>I've started to work on the <a href="https://bugs.freedesktop.org/show_bug.cgi?id=34465"><b>Bug 34465</b></a> and I have some questions:<br><br>1) What do you suggest to find all places where Put( const SfxPoolItem&, USHORT nWhich) is used?<br>
I came up with idea to make function private and fix all places where g++ gives error. Do you have better idea?<br><br>2) Is it a good idea to make a special clone method in SfxPoolItem, such as<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
virtual SfxPoolItem* CloneAtWhich( sal_uInt16 nNewWhich, SfxItemPool *pPool = 0 ) const<br> { SfxPoolItem *pItem = Clone( pPool ); pItem->SetWhich( nNewWhich ); <br> return pItem; }<br>
</blockquote><div>Which is used for example in:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx<br>
index 14be99e..1dd481c 100644<br>--- a/sc/source/core/tool/autoform.cxx<br>+++ b/sc/source/core/tool/autoform.cxx<br>@@ -672,9 +672,9 @@ void ScAutoFormatData::FillToItemSet( sal_uInt16 nIndex, SfxItemSet& rItemSet, S<br>
}<br> else<br> {<br>- rItemSet.Put( rField.GetHeight(), ATTR_CJK_FONT_HEIGHT );<br>- rItemSet.Put( rField.GetWeight(), ATTR_CJK_FONT_WEIGHT );<br>- rItemSet.Put( rField.GetPosture(), ATTR_CJK_FONT_POSTURE );<br>
+ rItemSet.Put( *(rField.GetHeight().CloneAtWhich( ATTR_CJK_FONT_HEIGHT )) );<br>+ rItemSet.Put( *(rField.GetWeight().CloneAtWhich( ATTR_CJK_FONT_WEIGHT )) );<br>+ rItemSet.Put( *(rField.GetPosture().CloneAtWhich( ATTR_CJK_FONT_POSTURE )) );<br>
}<br> // do not insert empty CTL font<br> const SvxFontItem& rCTLFont = rField.GetCTLFont();<br></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br></blockquote></div><br>Best Regards,<br> Maciek<br>