Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf78cab3

Browse files
Sven Overglynos
Sven Over
authored andcommitted
Fix compiler warnings (-Wignored-qualifiers and -Wunused-parameter)
Declaring return types as const has no effect. GCC warns you when itencounters such meaningless qualifiers.
1 parentfd25971 commitf78cab3

File tree

10 files changed

+43
-43
lines changed

10 files changed

+43
-43
lines changed

‎boost/network/protocol/http/impl/message.ipp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ namespace boost { namespace network { namespace http {
129129
}
130130

131131
template<typename Tag>
132-
boolconstmessage_impl<Tag>::base64_decode(consttypename message_impl<Tag>::string_type &input,typename message_impl<Tag>::string_type &output)
132+
bool message_impl<Tag>::base64_decode(consttypename message_impl<Tag>::string_type &input,typename message_impl<Tag>::string_type &output)
133133
{
134134
staticconstchar nop = -1;
135135
staticconstchar decoding_data[] = {
@@ -210,7 +210,7 @@ namespace boost { namespace network { namespace http {
210210
}
211211

212212
template<typename Tag>
213-
boolconstmessage_impl<Tag>::base64_encode(typename message_impl<Tag>::string_typeconst & input,typename message_impl<Tag>::string_type & output)
213+
bool message_impl<Tag>::base64_encode(typename message_impl<Tag>::string_typeconst & input,typename message_impl<Tag>::string_type & output)
214214
{
215215
staticconstchar encoding_data[] =
216216
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

‎boost/network/protocol/http/message.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ namespace boost { namespace network { namespace http {
6060
* @param output decoded string ( may include non-text chars)
6161
* @return true if successful, false if input string contains non-base64 symbols
6262
*/
63-
staticboolconstbase64_decode(string_typeconst &input, string_type & output);
63+
staticboolbase64_decode(string_typeconst &input, string_type & output);
6464

6565
/** encodes strings using base64
6666
*
6767
* @param input arbitrary string ( may include non-text chars)
6868
* @param output base64 encoded string
6969
* @return true if successful
7070
*/
71-
staticboolconstbase64_encode(string_typeconst &input, string_type & output);
71+
staticboolbase64_encode(string_typeconst &input, string_type & output);
7272

7373
protected:
7474
mutable string_type version_;
@@ -100,7 +100,7 @@ namespace boost { namespace network { namespace http {
100100
status_ = status;
101101
}
102102

103-
boost::uint16_tconststatus()const {
103+
boost::uint16_tstatus()const {
104104
return status_;
105105
}
106106

‎boost/network/protocol/http/message/async_message.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace boost { namespace network { namespace http {
7070
version_ = future;
7171
}
7272

73-
boost::uint16_tconststatus()const {
73+
boost::uint16_tstatus()const {
7474
return status_.get();
7575
}
7676

‎boost/network/protocol/http/server/storage_base.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace boost { namespace network { namespace http {
1515
structhas_io_service {};
1616
protected:
1717
template<classArgPack>
18-
server_storage_base(ArgPackconst & args, no_io_service)
18+
server_storage_base(ArgPackconst &/*args*/, no_io_service)
1919
: self_service_(new boost::asio::io_service())
2020
, service_(*self_service_)
2121
{}

‎boost/network/protocol/http/traits/impl/content.ipp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ namespace boost { namespace network { namespace http {
1313

1414
template<>
1515
structcontent<tags::http_default_8bit_tcp_resolve> {
16-
staticcharconst *consttype_html() {
16+
staticcharconst *type_html() {
1717
staticcharconst *const TYPE_HTML ="text/html";
1818
return TYPE_HTML;
1919
};
2020

21-
staticcharconst *consttype_text() {
21+
staticcharconst *type_text() {
2222
staticcharconst *const TYPE_TEXT ="text/plain";
2323
return TYPE_TEXT;
2424
};
2525

26-
staticcharconst *consttype_xml() {
26+
staticcharconst *type_xml() {
2727
staticcharconst *const TYPE_XML ="text/xml";
2828
return TYPE_XML;
2929
};
3030

31-
staticcharconst *consttype_urlencoded() {
31+
staticcharconst *type_urlencoded() {
3232
staticcharconst *const TYPE_URLENCODED ="application/x-www-form-urlencoded";
3333
return TYPE_URLENCODED;
3434
};

‎boost/network/protocol/http/traits/impl/delimiters.ipp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ namespace boost { namespace network { namespace http {
1414
// specialize on the tags::http_default_8bit_tcp_resolve type
1515
template<>
1616
structdelimiters<tags::http_default_8bit_tcp_resolve> {
17-
staticcharconst *conststring_crlf() {
17+
staticcharconst *string_crlf() {
1818
staticcharconst *const CRLF ="\x0D\x0A";
1919
return CRLF;
2020
};
2121

22-
staticcharconst *conststring_http_version() {
22+
staticcharconst *string_http_version() {
2323
staticcharconst *const HTTP_VERSION ="HTTP/1.1";
2424
return HTTP_VERSION;
2525
};
2626

27-
staticcharconst *constheader_name_value_delimiter() {
27+
staticcharconst *header_name_value_delimiter() {
2828
staticcharconst *const HEADER_NAME_VALUE_DELIMITER =":";
2929
return HEADER_NAME_VALUE_DELIMITER;
3030
};

‎boost/network/protocol/http/traits/impl/headers.ipp‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,62 +13,62 @@ namespace boost { namespace network { namespace http {
1313

1414
template<>
1515
structheaders_<tags::http_default_8bit_tcp_resolve> {
16-
staticcharconst *consthost() {
16+
staticcharconst *host() {
1717
staticcharconst *const HOST ="Host";
1818
return HOST;
1919
};
2020

21-
staticcharconst *constcookie() {
21+
staticcharconst *cookie() {
2222
staticcharconst *const COOKIE ="Cookie";
2323
return COOKIE;
2424
};
2525

26-
staticcharconst *constset_cookie() {
26+
staticcharconst *set_cookie() {
2727
staticcharconst *const SET_COOKIE ="Set-Cookie";
2828
return SET_COOKIE;
2929
};
3030

31-
staticcharconst *constconnection() {
31+
staticcharconst *connection() {
3232
staticcharconst *const CONNECTION ="Connection";
3333
return CONNECTION;
3434
};
3535

36-
staticcharconst *constcontent_type() {
36+
staticcharconst *content_type() {
3737
staticcharconst *const CONTENT_TYPE ="Content-Type";
3838
return CONTENT_TYPE;
3939
};
4040

41-
staticcharconst *constcontent_length() {
41+
staticcharconst *content_length() {
4242
staticcharconst *const CONTENT_LENGTH ="Content-Length";
4343
return CONTENT_LENGTH;
4444
};
4545

46-
staticcharconst *constcontent_location() {
46+
staticcharconst *content_location() {
4747
staticcharconst *const CONTENT_LOCATION ="Content-Location";
4848
return CONTENT_LOCATION;
4949
};
5050

51-
staticcharconst *constlast_modified() {
51+
staticcharconst *last_modified() {
5252
staticcharconst *const LAST_MODIFIED ="Last-Modified";
5353
return LAST_MODIFIED;
5454
};
5555

56-
staticcharconst *constif_modified_since() {
56+
staticcharconst *if_modified_since() {
5757
staticcharconst *const IF_MODIFIED_SINCE ="If-Modified-Since";
5858
return IF_MODIFIED_SINCE;
5959
};
6060

61-
staticcharconst *consttransfer_encoding() {
61+
staticcharconst *transfer_encoding() {
6262
staticcharconst *const TRANSFER_ENCODING ="Transfer-Encoding";
6363
return TRANSFER_ENCODING;
6464
};
6565

66-
staticcharconst *constlocation() {
66+
staticcharconst *location() {
6767
staticcharconst *const LOCATION ="Location";
6868
return LOCATION;
6969
};
7070

71-
staticcharconst *constauthorization() {
71+
staticcharconst *authorization() {
7272
staticcharconst *const AUTHORIZATION ="Authorization";
7373
return AUTHORIZATION;
7474
};

‎boost/network/protocol/http/traits/impl/request_methods.ipp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ namespace boost { namespace network { namespace http {
1313

1414
template<>
1515
structrequest_methods<tags::http_default_8bit_tcp_resolve> {
16-
staticcharconst *consthead() {
16+
staticcharconst *head() {
1717
staticcharconst *const HEAD ="HEAD";
1818
return HEAD;
1919
};
2020

21-
staticcharconst *constget() {
21+
staticcharconst *get() {
2222
staticcharconst *const GET ="GET";
2323
return GET;
2424
};
2525

26-
staticcharconst *constput() {
26+
staticcharconst *put() {
2727
staticcharconst *const PUT ="PUT";
2828
return PUT;
2929
};
3030

31-
staticcharconst *constpost() {
31+
staticcharconst *post() {
3232
staticcharconst *const POST ="POST";
3333
return POST;
3434
};
3535

36-
staticcharconst *constdelete_() {
36+
staticcharconst *delete_() {
3737
staticcharconst *const DELETE_ ="DELETE";
3838
return DELETE_;
3939
};

‎boost/network/protocol/http/traits/impl/response_message.ipp‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,57 +13,57 @@ namespace boost { namespace network { namespace http {
1313

1414
template<>
1515
structresponse_message<tags::http_default_8bit_tcp_resolve> {
16-
staticcharconst *constok() {
16+
staticcharconst *ok() {
1717
staticcharconst *const OK ="OK";
1818
return OK;
1919
};
2020

21-
staticcharconst *constcreated() {
21+
staticcharconst *created() {
2222
staticcharconst *const CREATED ="Created";
2323
return CREATED;
2424
};
2525

26-
staticcharconst *constno_content() {
26+
staticcharconst *no_content() {
2727
staticcharconst *const NO_CONTENT ="NO Content";
2828
return NO_CONTENT;
2929
};
3030

31-
staticcharconst *constunauthorized() {
31+
staticcharconst *unauthorized() {
3232
staticcharconst *const UNAUTHORIZED ="Unauthorized";
3333
return UNAUTHORIZED;
3434
};
3535

36-
staticcharconst *constforbidden() {
36+
staticcharconst *forbidden() {
3737
staticcharconst *const FORBIDDEN ="Fobidden";
3838
return FORBIDDEN;
3939
};
4040

41-
staticcharconst *constnot_found() {
41+
staticcharconst *not_found() {
4242
staticcharconst *const NOT_FOUND ="Not Found";
4343
return NOT_FOUND;
4444
};
4545

46-
staticcharconst *constmethod_not_allowed() {
46+
staticcharconst *method_not_allowed() {
4747
staticcharconst *const METHOD_NOT_ALLOWED ="Method Not Allowed";
4848
return METHOD_NOT_ALLOWED;
4949
};
5050

51-
staticcharconst *constnot_modified() {
51+
staticcharconst *not_modified() {
5252
staticcharconst *const NOT_MODIFIED ="Not Modified";
5353
return NOT_MODIFIED;
5454
};
5555

56-
staticcharconst *constbad_request() {
56+
staticcharconst *bad_request() {
5757
staticcharconst *const BAD_REQUEST ="Bad Request";
5858
return BAD_REQUEST;
5959
};
6060

61-
staticcharconst *constserver_error() {
61+
staticcharconst *server_error() {
6262
staticcharconst *const SERVER_ERROR ="Server Error";
6363
return SERVER_ERROR;
6464
};
6565

66-
staticcharconst *constnot_implemented() {
66+
staticcharconst *not_implemented() {
6767
staticcharconst *const NOT_IMPLEMENTED ="Not Implemented";
6868
return NOT_IMPLEMENTED;
6969
};

‎boost/network/utils/thread_pool.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace boost { namespace network { namespace utils {
6868
commit =true;
6969
}
7070

71-
std::size_tconstthread_count()const {
71+
std::size_tthread_count()const {
7272
return threads_;
7373
}
7474

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp