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



I'm unsure whether the acks needed for cherrypick are "any committer"
or a more restricted group, but in case it is the former: I agree that
commit 03e9161e2eca9d389d7ce419495538c31f6aed31 is worthwhile to
cherrypick for 3.4.3, as:

1) Can lead to data loss

2) The fix sounds pretty safe to me (as in "it can't hurt"): if the
   library is already loaded, loading it again is a no-op:

void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name )
    throw(NoSuchElementException, WrappedTargetException,
    RuntimeException)
{
    LibraryContainerMethodGuard aGuard( *this );
    Any aLibAny = maNameContainer.getByName( Name ) ;
    Reference< XNameAccess > xNameAccess;
    aLibAny >>= xNameAccess;
    SfxLibrary* pImplLib = static_cast< SfxLibrary* >(
    xNameAccess.get() );

    sal_Bool bLoaded = pImplLib->mbLoaded;
    pImplLib->mbLoaded = sal_True;
    if( !bLoaded && xNameAccess->hasElements() )
    {
       (...)
    }
}

-- 
Lionel

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.