Use nested namespace
It's a mechanical change to modernize the code base
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
#ifndef COMPRESSION_TYPE_HPP
|
||||
#define COMPRESSION_TYPE_HPP
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
namespace osrm::server::http
|
||||
{
|
||||
|
||||
enum compression_type
|
||||
@@ -14,8 +10,6 @@ enum compression_type
|
||||
gzip_rfc1952,
|
||||
deflate_rfc1951
|
||||
};
|
||||
}
|
||||
} // namespace server
|
||||
} // namespace osrm
|
||||
|
||||
#endif // COMPRESSION_TYPE_HPP
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
namespace osrm::server::http
|
||||
{
|
||||
|
||||
struct header
|
||||
@@ -27,8 +23,6 @@ struct header
|
||||
std::string name;
|
||||
std::string value;
|
||||
};
|
||||
} // namespace http
|
||||
} // namespace server
|
||||
} // namespace osrm
|
||||
|
||||
#endif // HEADER_HPP
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
namespace osrm::server::http
|
||||
{
|
||||
|
||||
class reply
|
||||
@@ -38,8 +34,6 @@ class reply
|
||||
std::string status_to_string(reply::status_type status);
|
||||
boost::asio::const_buffer status_to_buffer(reply::status_type status);
|
||||
};
|
||||
} // namespace http
|
||||
} // namespace server
|
||||
} // namespace osrm
|
||||
|
||||
#endif // REPLY_HPP
|
||||
|
||||
@@ -5,11 +5,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
namespace osrm::server::http
|
||||
{
|
||||
|
||||
struct request
|
||||
@@ -20,8 +16,6 @@ struct request
|
||||
std::string connection;
|
||||
boost::asio::ip::address endpoint;
|
||||
};
|
||||
} // namespace http
|
||||
} // namespace server
|
||||
} // namespace osrm
|
||||
|
||||
#endif // REQUEST_HPP
|
||||
|
||||
Reference in New Issue
Block a user