aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ice40
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-21 16:16:58 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-21 16:16:58 +0200
commit4fefdbd57c52d6373456bd379e3e54df770e1945 (patch)
tree668c93671338f4482b163c2e8f40298cbedcb2c0 /gui/ice40
parent417e67938c12be20a1c314d42386ede0ad8993a7 (diff)
downloadnextpnr-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/ice40')
-rw-r--r--gui/ice40/worker.cc2
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))