hijam / twitcurl

Automatically exported from code.google.com/p/twitcurl
0 stars 0 forks source link

There is no "const" for parameters with explicit "in" comment #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What version of the product are you using? On what operating system?
r88

Please provide any additional information below.

please add const to your function parameter 

e.g.:
bool statusUpdate( std::string& newStatus /* in */ );
// you explicit write its an "in" parameter but dont write:
bool statusUpdate(const std::string& newStatus /* in */ );
//the problem with this is you cant write things like:
twit.statusUpdate("new msg");

Original issue reported on code.google.com by stu...@gmail.com on 14 Jun 2012 at 7:34