mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-08-19 16:28:16 +00:00
move export_list into c transform
Avoid having to hand in the export list on every filter call.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include "output-pgsql.hpp"
|
||||
#include "output-gazetteer.hpp"
|
||||
#include "output-null.hpp"
|
||||
#include "taginfo_impl.hpp"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -135,8 +136,9 @@ void test_lua_styles()
|
||||
options_t options = options_t(len(a1), const_cast<char **>(a1));
|
||||
|
||||
try {
|
||||
export_list exlist;
|
||||
std::unique_ptr<tagtransform_t> tagtransform =
|
||||
tagtransform_t::make_tagtransform(&options);
|
||||
tagtransform_t::make_tagtransform(&options, exlist);
|
||||
throw std::logic_error("Expected 'No such file or directory'");
|
||||
} catch (const std::runtime_error &e) {
|
||||
if (!alg::icontains(e.what(), "No such file or directory"))
|
||||
|
Reference in New Issue
Block a user