[Webkit-unassigned] [Bug 67705] [EFL] Add missing *void* parameter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 7 11:04:41 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67705


Lucas De Marchi <demarchi at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #106573|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #2 from Lucas De Marchi <demarchi at webkit.org>  2011-09-07 11:04:41 PST ---
(From update of attachment 106573)
void parameter is not a coding-style thing.

In C, a function with no parameters is achieved by putting a void keyword in the parameter's list. Without any keywords it's considered a function that can receive any number of parameters (the equivalent of writing (...)  in C++).

Although this is a valid function prototype in C++, it's not a the preferred way of doing it. Since these are all C++ files and header that is included only by C++ sources, there's no point in adding them at all.

See: http://en.wikipedia.org/wiki/Void_type

For the reasons pointed out above, my informal r-.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list