File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2274,7 +2274,7 @@ void hex_dump (const void* addr, const int len)
22742274
22752275 int i;
22762276 unsigned char buff[per_line+1 ];
2277- const unsigned char * pc = ( const unsigned char *) addr;
2277+ const unsigned char * pc = static_cast < const unsigned char *>( addr) ;
22782278
22792279 // Process every byte in the data.
22802280 for (i = 0 ; i < len; i++) {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ TEST (http, parse_post)
6161 using container = std::vector<std::pair<std::string,std::string>>;
6262
6363 // Test POST data of type application/x-www-form-urlencoded.
64- for (const std::string content_type : {
64+ for (const std::string& content_type : {
6565 std::string (application_x_www_form_urlencoded),
6666 std::string (application_x_www_form_urlencoded) + " ; charset=UTF-8" ,
6767 }) {
You can’t perform that action at this time.
0 commit comments