URL:
<http://savannah.gnu.org/bugs/?36194>
Summary: Improve const-correctness
Project: GNU gv
Submitted by: elfring
Submitted on: So 15 Apr 2012 16:25:49 CEST
Category: Sources configuration
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
_______________________________________________________
Details:
Would you like to apply the advices from an article
<http://en.wikipedia.org/wiki/Const-correctness> to more places in your
sources?
I suggest to add the key word "const" to the type specifiers for parameters
like the following.
* fn
<http://git.savannah.gnu.org/cgit/gv.git/tree/gv/src/file.h?id=4ad16200d391d5ba8894cfdbd122d8368ad8800b#n40>
(function "file_fileIsDir")
* filename
<http://git.savannah.gnu.org/cgit/gv.git/tree/gv/src/ps.h?id=b89cc512a93fa8f9625a767970e3a90e018348c0#n100>
(function "psscan")
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36194>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/