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


On 02/02/2015 12:37 PM, Caolán McNamara wrote:
unusedcode.easy has an
OooEmbeddedObjectFactory::createInstanceLinkUserInit after the recent
devirtualization allowed callcatcher to determine that its unused. On
investigation the embeddedobj/source/commonembedding/xfactory.hxx used
to explicitly list implementing XLinkFactory until

251f1b0b38be7d1267339898e44e320f05849e22
Date:   Tue Jan 8 14:29:06 2013 +0200
     fdo#46808, Adapt embed::*EmbeddedObjectCreator UNO services to new
style

interface XEmbeddedObjectCreator
{
     interface XEmbedObjectCreator;
     interface XEmbedObjectFactory;
     interface XLinkCreator;
     [optional] interface XLinkFactory;
};

so I assume the problem here is the [optional] thing. What's the right
way to fix this within the new style uno foo ?

I guess it was a plain oversight in embeddedobj/source/commonembedding/xfactory.hxx to go from

class OOoEmbeddedObjectFactory : public ::cppu::WeakImplHelper5<
                                                ::com::sun::star::embed::XEmbedObjectCreator,
                                                ::com::sun::star::embed::XEmbedObjectFactory,
                                                ::com::sun::star::embed::XLinkCreator,
                                                ::com::sun::star::embed::XLinkFactory,
                                                ::com::sun::star::lang::XServiceInfo >

to

class OOoEmbeddedObjectFactory : public ::cppu::WeakImplHelper2<
                                                ::com::sun::star::embed::XEmbeddedObjectCreator,
                                                ::com::sun::star::lang::XServiceInfo >

instead of

class OOoEmbeddedObjectFactory : public ::cppu::WeakImplHelper3<
                                                ::com::sun::star::embed::XEmbeddedObjectCreator,
                                                ::com::sun::star::embed::XLinkFactory,
                                                ::com::sun::star::lang::XServiceInfo >

as optional UNOIDL superinterfaces are simply erased in the C++ language binding. Fixed now with <http://cgit.freedesktop.org/libreoffice/core/commit/?id=c33c309f13dee335d81eb0e00363d4ae2d7c911a> "OOoEmbeddedObjectFactory does implement optional XLinkFactory."

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.