Modal?
-
Lots of WTF code where I'm from. I recently saw this snippet that made me go "huh?!"
CModelessDialog dlg;
dlg.doModal();
the doModal() method was an absolute disaster too.
-
That's one of those good "representative line" WTFs. Even if it's two lines.
-
@Saladin said:
That's one of those good "representative line" WTFs. Even if it's two lines.
new CModelessDialog()->doModal();
// Now it's a one-liner that leaks memory, too!