[Libreoffice] Doubt about bogus and commented code

Jan Holesovsky kendy at suse.cz
Thu Mar 17 05:55:52 PDT 2011


Hi Xisco,

On 2011-03-17 at 13:52 +0100, Xisco Faulí wrote:

> // #FIXME this *MUST* be wrong documents::close surely closes ALL
> documents
> // in the collection, use of getCurrentDocument here is totally wrong
> -/*
> - uno::Reference< lang::XMultiComponentFactory > xSMgr(
> - mxContext->getServiceManager(), uno::UNO_QUERY_THROW );
> - uno::Reference< frame::XModel > xModel( getCurrentDocument(),
> uno::UNO_QUERY_THROW );
> - rtl::OUString url =
> rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CloseDoc"));
> - dispatchRequests(xModel,url);
> -*/

In this case it seems that even the FIXME should be removed - it
references the code that is commented out.

Regards,
Kendy



More information about the LibreOffice mailing list