[FusionDev] [Bug 630] New: Improve const-correctness

bugzilla at bugs.opencompositing.org bugzilla at bugs.opencompositing.org
Fri Nov 16 18:20:30 CET 2007


http://bugs.opencompositing.org/show_bug.cgi?id=630

           Summary: Improve const-correctness
           Product: Compiz Fusion
           Version: git HEAD
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Plugins
        AssignedTo: dev at lists.compiz-fusion.org
        ReportedBy: Markus.Elfring at web.de


Would you like to apply the advices from the 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.
http://gitweb.opencompositing.org/?p=compiz;a=blob;f=include/compiz.h;h=aef3a7cf0783316d9025f738ec9d62d4577c1133;hb=HEAD
value (functions "compSet...Option")

http://gitweb.opencompositing.org/?p=compiz;a=blob;f=src/option.c;h=2f7b8fbf179c98d24ca51e0d2610190a7184bd84;hb=HEAD
option, name (functions "get...OptionNamed")
value (functions "compSetOptionList", "compWindowTypeMaskFromStringList")
a (function "stringAppend")
key (function "keyBindingToString")
rgba (function "colorToString")
option (function "isActionOption")
modifiers, edges (global variables)

http://gitweb.opencompositing.org/?p=fusion/plugins-main;a=blob;f=src/colorfilter/parser.h;h=20b65463a917637d4f16a3c05e3c695fbb3674bf;hb=HEAD
source, name (function "buildFragmentProgram")
file, name (function "loadFragmentProgram")

http://gitweb.compiz-fusion.org/?p=fusion/plugins/colorfilter;a=blob;f=parser.c;h=e34ccb1d45f3893dd95fb94c17a89a65fceb1fec;hb=HEAD
name (function "programCleanName")
fname (function "programReadSource")


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


More information about the Dev mailing list