On 21 November 2010 01:04, Miklos Vajna <vmik...@frugalware.org> wrote: > On Sun, Nov 21, 2010 at 12:21:08AM +1100, Mattias Johnsson > <m.t.johns...@gmail.com> wrote: >> int SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const >> { >> DBG_CHKTHIS(SfxPoolItem, 0); >> return rCmp.Type() == Type(); >> } >> >> but for the life of me I can't find out where the Type() method is defined. >> >> Does anyone have any pointers? > > The SfxPoolItem itself is declared in svl/inc/svl/poolitem.hxx. You can > see a TYPEINFO(); macro there, which is defined in > tools/inc/tools/rtti.hxx. > > Now if you want the definition of that method, the implementation is in > source/items/poolitem.cxx, where there is a TYPEINIT0() macro, defined > in tools/inc/tools/rtti.hxx again. > > TYPEINIT0() calls TYPEINIT0_FACTORY(), that calls TYPEINIT_FACTORY(), > where the real method is defined. > > Hope this helps. :) >
Obviously I was thinking too simplistically :-P Thanks! _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice