Skip to content

Commit

Permalink
Minor fixes (openstreetmap#442)
Browse files Browse the repository at this point in the history
* `.github/actions/coverage/action.yml`
  * Ignore `unused` errors when excluding coverage directories
* `docs/build/building_on_ubuntu.md`
  * Fix typo
* `src/parameterize_style.cpp`
  * Use `auto` rather than `std::optional<std::string>`/`boost::optional<std::string>`
  • Loading branch information
hummeltech authored Jun 13, 2024
1 parent 1f81434 commit bc33cf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/actions/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ runs:
--output-file coverage.info \
--rc geninfo_unexecuted_blocks=1
lcov ${{ inputs.lcov-extra-options }} \
--ignore-errors unused \
--output-file coverage.info \
--remove coverage.info \
"${GITHUB_WORKSPACE}/includes/*" \
Expand Down
2 changes: 1 addition & 1 deletion docs/build/building_on_ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Please see our [Continuous Integration script](/.github/workflows/build-and-test

A Docker-based building & testing setup pipeline is also available [here](/docker) for your convenience.

# Ubuntu 20.04/22.04.24.04
# Ubuntu 20.04/22.04/24.04

```shell
#!/usr/bin/env bash
Expand Down
6 changes: 1 addition & 5 deletions src/parameterize_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ static void parameterize_map_language(mapnik::Map &m, char *parameter)
mapnik::parameters params = l.datasource()->params();

if (params.find("table") != params.end()) {
#if MAPNIK_MAJOR_VERSION >= 4
std::optional<std::string> table = params.get<std::string>("table");
#else
boost::optional<std::string> table = params.get<std::string>("table");
#endif
auto table = params.get<std::string>("table");

if (table && table->find(",name") != std::string::npos) {
std::string str = *table;
Expand Down

0 comments on commit bc33cf9

Please sign in to comment.