[Freeciv-tickets] [freeciv] #44775: Functions with 'void' argument list in C++

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Wed Jun 8 11:58:32 JST 2022


#44775: Functions with 'void' argument list in C++

  Open Date: 2022-06-08 05:58
Last Update: 2022-06-08 05:58

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44775
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44775

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-06-08 05:58 Updated by: cazfi
 * New Ticket "Functions with 'void' argument list in C++" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

We have quite a number of functions taking 'void' argument list in our C++ code.
From the CodingStyle: "Functions that take no arguments should be declared and defined with 'void' argument list in C code, and empty argument list in C++ code."
While this is not as bad as having it the other way (empty argument list in C-code, while it should be 'void'), it should still be corrected.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44775
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44775



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index