From 167d216226431719345411008fae9eeb9288fba3 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 28 Dec 2015 16:17:20 +0100 Subject: [PATCH] minor cleanup --- main.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index 0bda2ab..60c2fa9 100644 --- a/main.cc +++ b/main.cc @@ -344,16 +344,17 @@ struct ObState: CsState { } if ((!ret && (act || ob_check_exec(tname, subdeps))) && func) { StackedValue targetv, sourcev, sourcesv; + CsState &cs = *this; - if (!targetv.alias(*this, "target")) + if (!targetv.alias(cs, "target")) return 1; targetv.set_cstr(tname); targetv.push(); if (!subdeps.empty()) { - if (!sourcev.alias(*this, "source")) + if (!sourcev.alias(cs, "source")) return 1; - if (!sourcesv.alias(*this, "sources")) + if (!sourcesv.alias(cs, "sources")) return 1; sourcev.set_cstr(subdeps[0]);