From 4fefdbd57c52d6373456bd379e3e54df770e1945 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 21 Jun 2018 16:16:58 +0200 Subject: Cleanup parse_json_file API, some other cleanups Signed-off-by: Clifford Wolf --- ice40/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/main.cc b/ice40/main.cc index e86cd5b1..76c059b8 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -283,7 +283,7 @@ int main(int argc, char *argv[]) if (vm.count("json")) { std::string filename = vm["json"].as(); - std::istream *f = new std::ifstream(filename); + std::ifstream f(filename); parse_json_file(f, filename, &ctx); -- cgit v1.2.3