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 /gui | |
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 'gui')
-rw-r--r-- | gui/ice40/worker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ice40/worker.cc b/gui/ice40/worker.cc index 5a8ff0e9..bd22f552 100644 --- a/gui/ice40/worker.cc +++ b/gui/ice40/worker.cc @@ -18,7 +18,7 @@ Worker::Worker(Context *_ctx) : ctx(_ctx) void Worker::parsejson(const std::string &filename) { std::string fn = filename; - std::istream *f = new std::ifstream(fn); + std::ifstream f(fn); parse_json_file(f, fn, ctx); if (!pack_design(ctx)) |