From d56624bce222d870298d937e634fe01aef5c39e4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 27 Jul 2017 04:38:26 -0400 Subject: static, liberal use of keyword --- src/sdp/meta/composite_make.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sdp/meta/composite_make.d') diff --git a/src/sdp/meta/composite_make.d b/src/sdp/meta/composite_make.d index dc28206..bcbe20c 100644 --- a/src/sdp/meta/composite_make.d +++ b/src/sdp/meta/composite_make.d @@ -13,8 +13,8 @@ template compositeMkCnf() { string _italics; string _emphasis; auto compositeMkCnf(Mks...)(Mks makes) { + static auto rgx = Rgx(); foreach (make; makes) { - auto rgx = Rgx(); if (auto z = "make" in make) { if (auto x = "substitute" in *z) { foreach (m; (*x).matchAll(rgx.make_simple_substitutions_d)) { @@ -78,7 +78,7 @@ template compositeMkCnfAA() { mixin SiSUrgxInit; string[] _substitutions; string[string][] _sub; - auto rgx = Rgx(); + static auto rgx = Rgx(); auto compositeMkCnfAA(Mks...)(Mks makes) { /+ - skip.first_make which is the "composite make output" -- cgit v1.2.3