From da936332dc117580a0f6a04aa17525e1c31b77d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 5 Nov 2011 23:07:55 +0200 Subject: Reduce scope of some variables. --- xml/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xml') diff --git a/xml/function.c b/xml/function.c index c9994e9..62c097f 100644 --- a/xml/function.c +++ b/xml/function.c @@ -54,7 +54,6 @@ bool cxFunction::Parse(const std::string &Text) const char *text = Text.c_str(); const char *ptr = text, *last = text; eType type = undefined_function; - int inExpr = 0; cxFunction *expr; if (*ptr == '\'' || *ptr == '{') { @@ -95,6 +94,7 @@ bool cxFunction::Parse(const std::string &Text) } else { // expression + int inExpr = 0; for (; *ptr; ++ptr) { if (*ptr == '(') { if (inExpr++ == 0) { -- cgit v1.2.3