Skip to content

Commit b1a634a

Browse files
authored
Merge pull request #1513 from joto/include-fixes
Include cleanups/fixes
2 parents 66b7bd9 + 4561d74 commit b1a634a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+79
-52
lines changed

src/db-check.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
*/
99

1010
#include "db-check.hpp"
11+
#include "format.hpp"
1112
#include "logging.hpp"
13+
#include "options.hpp"
1214
#include "pgsql.hpp"
1315
#include "version.hpp"
1416

17+
#include <cstdlib>
1518
#include <stdexcept>
19+
#include <string>
1620

1721
/**
1822
* Check whether the table with the specified name exists in the specified

src/db-check.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* For a full list of authors see the git log.
1111
*/
1212

13-
#include "options.hpp"
13+
class options_t;
1414

1515
/**
1616
* Get settings from the database and check that minimum requirements for

src/db-copy.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <mutex>
1818
#include <string>
1919
#include <thread>
20+
#include <utility>
2021
#include <vector>
2122

2223
#include "osmtypes.hpp"

src/dependency-manager.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <cassert>
1818
#include <memory>
19+
#include <utility>
1920

2021
class middle_t;
2122

src/flex-table-column.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
*/
99

1010
#include "flex-table-column.hpp"
11+
#include "format.hpp"
1112

1213
#include <algorithm>
1314
#include <array>
1415
#include <cctype>
15-
#include <cstring>
16+
#include <cstdlib>
1617
#include <stdexcept>
1718
#include <utility>
1819

src/flex-table-column.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
* For a full list of authors see the git log.
1111
*/
1212

13-
#include "format.hpp"
14-
#include "reprojection.hpp"
15-
13+
#include <cassert>
1614
#include <cstdint>
1715
#include <string>
1816

src/flex-table.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "util.hpp"
1515

1616
#include <cassert>
17-
#include <stdexcept>
1817
#include <string>
1918

2019
char const *type_to_char(osmium::item_type type) noexcept

src/geom.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#include <osmium/osm/way.hpp>
1515

1616
#include <algorithm>
17+
#include <cmath>
1718
#include <iterator>
19+
#include <tuple>
1820

1921
namespace geom {
2022

src/geom.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
#include <osmium/osm/node_ref_list.hpp>
2323
#include <osmium/memory/buffer.hpp>
2424

25+
#include <algorithm>
26+
#include <cassert>
2527
#include <initializer_list>
2628
#include <ostream>
29+
#include <utility>
2730
#include <vector>
2831

2932
namespace geom {

src/input.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "osmtypes.hpp"
2828

2929
class osmdata_t;
30-
class progress_display_t;
3130

3231
struct type_id_version
3332
{

0 commit comments

Comments
 (0)