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


Hi Noel,

On 29.02.2012 13:19, Noel Grandin wrote:
Convert tools/table.hxx usage in
toolkit/source/controls/unocontrolmodel.cxx to std::map

Pushed with some corrections, thanks, nice cleanup!

I only replaced
@@ -1252,26 +1205,29 @@ void UnoControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nPropId, 
const
 {
     // Fehlt: Die gefakten Einzelproperties des FontDescriptors...

-    ImplControlProperty* pProp = mpData->Get( nPropId );
+    ::com::sun::star::uno::Any* pProp = &maData[ nPropId ];
+    if ( maData.find(nPropId) != maData.end() )
+        pProp = &maData[ nPropId ];

with
    ImplPropertyTable::const_iterator it = maData.find( nPropId );
const ::com::sun::star::uno::Any* pProp = it == maData.end() ? NULL : &(it->second);

(I simply copied your code a few lines below.)

Hopefully I did not miss something else.

Regards,
Ivan

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.