[Libreoffice] [PATCH] fontdialog: Convert switch with only 1 case to an if ()

Tor Lillqvist tlillqvist at novell.com
Tue Sep 28 23:51:17 PDT 2010

Could it be that a switch statement is used here because there are other possible values of the parameter that the code really should handle, but doesn't ye? The author used a switch statement anticipating more cases later? But yeah, in that case, surely the author ought to have left some comment indicating that.


More information about the LibreOffice mailing list