Skip to content

Commit

Permalink
Apply code style fixes to existing code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKutzner committed Feb 12, 2025
1 parent f96d3a7 commit ef96591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exe/backend/src/http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ http_server::http_server(boost::asio::io_context& ioc,
platforms const* pl,
elevation_storage const* elevation,
std::string const& static_file_path)
: impl_(new impl(ioc, thread_pool, w, l, pl, elevation, static_file_path)) {
: impl_{new impl(ioc, thread_pool, w, l, pl, elevation, static_file_path)} {
}

http_server::~http_server() = default;
Expand Down
4 changes: 2 additions & 2 deletions include/osr/geojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace osr {

inline boost::json::array to_array(point const& p) {
inline boost::json::array to_array(point const p) {
return {p.lng(), p.lat()};
}

Expand All @@ -36,7 +36,7 @@ boost::json::value to_line_string(std::initializer_list<T>&& line) {
return to_line_string(line);
}

inline boost::json::value to_point(point const& p) {
inline boost::json::value to_point(point const p) {
return {{"type", "Point"}, {"coordinates", to_array(p)}};
}

Expand Down
2 changes: 1 addition & 1 deletion include/osr/point.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace osr {

struct point {
friend std::ostream& operator<<(std::ostream& out, point const& c) {
friend std::ostream& operator<<(std::ostream& out, point const c) {
auto const l = c.as_location();
return out << '(' << l.lat() << ", " << l.lon() << ')';
}
Expand Down

0 comments on commit ef96591

Please sign in to comment.