From 77c82b0fbf15892b0c8222bac89564f3f024493e Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 10 Aug 2022 10:57:17 +0100 Subject: refactor: id(stringf(...)) to new idf(...) helper Signed-off-by: gatecat --- generic/viaduct_helpers.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'generic/viaduct_helpers.cc') diff --git a/generic/viaduct_helpers.cc b/generic/viaduct_helpers.cc index 153d2a0e..53df625c 100644 --- a/generic/viaduct_helpers.cc +++ b/generic/viaduct_helpers.cc @@ -29,15 +29,15 @@ void ViaductHelpers::resize_ids(int x, int y, int z) { NPNR_ASSERT(x >= 0 && y >= 0 && x <= 20000 && y <= 20000 && z <= 1000); while (int(x_ids.size()) <= x) { - IdString next = ctx->id(stringf("X%d", int(x_ids.size()))); + IdString next = ctx->idf("X%d", int(x_ids.size())); x_ids.push_back(next); } while (int(y_ids.size()) <= y) { - IdString next = ctx->id(stringf("Y%d", int(y_ids.size()))); + IdString next = ctx->idf("Y%d", int(y_ids.size())); y_ids.push_back(next); } while (int(z_ids.size()) <= y) { - IdString next = ctx->id(stringf("Z%d", int(z_ids.size()))); + IdString next = ctx->idf("Z%d", int(z_ids.size())); z_ids.push_back(next); } } -- cgit v1.2.3