[sane-devel] Improve const-correctness

Markus Elfring Markus.Elfring at web.de
Fri Jun 29 14:50:20 UTC 2007


Would you like to apply the advices from the article 
"http://en.wikipedia.org/wiki/Const-correctness" to more places in your 
source files?
I suggest to add the key word "const" to the type specifiers for 
parameters like the following.
- xsane-save.h:
  filename (function "xsane_get_filesize")
  image_info (functions "xsane_write_pnm_header", "xsane_save_ps_page", 
  server, port (function "open_socket")
  fd_socket, user, passwd (function "pop3_login")
  fd_socket, from, reply_to, to, subject, boundary, related (function 

- xsane-preview.h:
  parameters (function "preview_create_batch_icon")

- xsane-viewer.h:
  filename, selection_filetype, allow_reduction_to_lineart, 
output_filename, allow_modification, image_saved (function 



More information about the sane-devel mailing list