diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-21 16:16:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-21 16:16:58 +0200 |
commit | 4fefdbd57c52d6373456bd379e3e54df770e1945 (patch) | |
tree | 668c93671338f4482b163c2e8f40298cbedcb2c0 /ice40 | |
parent | 417e67938c12be20a1c314d42386ede0ad8993a7 (diff) | |
download | nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.gz nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.tar.bz2 nextpnr-4fefdbd57c52d6373456bd379e3e54df770e1945.zip |
Cleanup parse_json_file API, some other cleanups
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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::string>(); - std::istream *f = new std::ifstream(filename); + std::ifstream f(filename); parse_json_file(f, filename, &ctx); |