💭 I suggest to add the key word “const” to the type specifiers for a few parameters in functions like the following.
- filename
|
/* filename of data file */ |
|
void track_set_filename(Track *track, char *filename); |
- value
|
/* set CD-TEXT field to value for PTI pti */ |
|
void cdtext_set(int pti, char *value, Cdtext *cdtext); |
Would you like to apply the advices from an article to more places in your source files?
💭 I suggest to add the key word “const” to the type specifiers for a few parameters in functions like the following.
libcue/cd.h
Lines 45 to 46 in 7176a1f
libcue/cdtext.h
Lines 28 to 29 in 7176a1f
Would you like to apply the advices from an article to more places in your source files?