Re: Adding an implemented UNO interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 03, 2023 at 07:21:40PM +0200, Noel Grandin wrote:
> On Sat, 2 Sept 2023 at 09:26, Lionel Élie Mamane <lionel@xxxxxxxxx> wrote:

>> #include <grault.hxx>
>> /* grault .hxx contains:
>>  *
>>  * typedef ::cppu::WeakComponentImplHelper2 <
>>  *            css::Baz,
>>  *            css::qux >  grault_BASE;
>>  *
>>  * class grault : public grault_BASE { ... }
>>  */

> You can do

> class bar1 : public grault_BASE {}
> class bar : public ImplInheritanceHelper<bar1, css::corge> {}

Reading up on ImplInheritanceHelper, I think you meant (or my question
was unclear, but the answer to the question I had meant to ask is)

typedef cppu::ImplInheritanceHelper <grault, css::corge > bar_BASE;

class bar: public bar_BASE
{
   ....
}



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux