Skip to content

Commit 064b0bb

Browse files
committed
Fixes for compilation on Linux/GCC 4.4.
1 parent f67705f commit 064b0bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

boost/network/uri/accessors.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ template <
4545
>
4646
inline
4747
Map &query_map(const uri &uri_, Map &map) {
48-
std::string range = uri_.query();
48+
const std::string range = uri_.query();
4949
details::key_value_sequence<Map> parser;
5050
spirit::qi::parse(boost::begin(range), boost::end(range), parser, map);
5151
return map;
5252
}
5353

5454
std::string username(const uri &uri_) {
55-
std::string user_info = uri_.user_info();
55+
const std::string user_info = uri_.user_info();
5656
uri::const_iterator it(boost::begin(user_info)), end(boost::end(user_info));
5757
for (; it != end; ++it) {
5858
if (*it == ':') {
@@ -63,7 +63,7 @@ std::string username(const uri &uri_) {
6363
}
6464

6565
std::string password(const uri &uri_) {
66-
std::string user_info = uri_.user_info();
66+
const std::string user_info = uri_.user_info();
6767
uri::const_iterator it(boost::begin(user_info)), end(boost::end(user_info));
6868
for (; it != end; ++it) {
6969
if (*it == ':') {
@@ -75,21 +75,21 @@ std::string password(const uri &uri_) {
7575
}
7676

7777
std::string decoded_path(const uri &uri_) {
78-
std::string path = uri_.path();
78+
const std::string path = uri_.path();
7979
std::string decoded_path;
8080
decode(path, std::back_inserter(decoded_path));
8181
return decoded_path;
8282
}
8383

8484
std::string decoded_query(const uri &uri_) {
85-
std::string query = uri_.query();
85+
const std::string query = uri_.query();
8686
std::string decoded_query;
8787
decode(query, std::back_inserter(decoded_query));
8888
return decoded_query;
8989
}
9090

9191
std::string decoded_fragment(const uri &uri_) {
92-
std::string fragment = uri_.fragment();
92+
const std::string fragment = uri_.fragment();
9393
std::string decoded_fragment;
9494
decode(fragment, std::back_inserter(decoded_fragment));
9595
return decoded_fragment;

0 commit comments

Comments
 (0)