[Kde-pim] .h or .cpp: which code will be used?

David Jarvie djarvie at kde.org
Fri May 21 16:49:07 BST 2010



On Fri, May 21, 2010 4:26 pm, Guy Maurel wrote:
> Hi!
>
> I found something I don't anderstand:
> The file kdelibs/kio/kio/global.h  defines the method and code for
> MetaData & operator +=
> and
> the file kdelibs/kio/kio/global.h  defines the method and code for
> MetaData & operator +=
> but
> the code is a little bit different.
> There no error from the compiler.
> Which code will be used?
> Isn't one of them too much?

There are two operator+=() methods, with different signatures. One is
defined in the .h file, the other in the .cpp file.

-- 
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list