Re: scary / too subtle overload

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

 




> Function overload based on different integer types, one virtual, the


Sadly, our code is full of using the same member function names over and over, with different semantics, using the number and types of parameters to differentiate. Another example: OutputDevice::SetLineColor() and OutputDevice::SetLineColor( const Color& rColor ) where the first case actually means "set NO line color (transparent)". Obviously (sarcasm) calling it "SetTransparentLineColor" or "SetNoLineColor" would have been too obvious.

--tml

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice

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

  Powered by Linux