[Uml-devel] #define'd function in worktoolbar.cpp

Jonathan Riddell jr at jriddell.org
Sat Oct 4 02:33:02 UTC 2003


Oliver (I think): is there a reason for having a nasty #define
function in worktoolbar.cpp rather than a nice clean method?

It might save a few microseconds during runtime but #define'd
functions are bad practice and really messy looking.

#define BTN(name, label)  \
        insertButton(m_Pixmaps . name, tbb_ ## name, true, i18n(label)); \
        setToggle( tbb_ ## name, true )



Jonathan




More information about the umbrello-devel mailing list