[PATCH] [core/vcl/source/window/splitwin.cxx:2047] ->[core/vcl/source/window/splitwin.cxx:2045]:(style) Found duplicate branches for if and else.

julien2412 serval2412 at yahoo.fr
Sat Feb 18 06:21:15 PST 2012


This subject, switch/if else, reminded me what I read recently on the
Stroustrup book.
1) The fact that "switch allows a better quality machine code".
2) an enumeration used with a switch allows a compiler to detect a case
which has be forgotten.

Now, I'm not a senior C++ dev at all, just a beginner who tries to improve
his knowledge so ... :-)

Julien.

--
View this message in context: http://nabble.documentfoundation.org/PATCH-core-vcl-source-window-splitwin-cxx-2047-core-vcl-source-window-splitwin-cxx-2045-style-Found--tp3748733p3756391.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list