From df51f6087c509b2105b2a72d46c27fe585babe1f Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 31 Jan 2017 17:42:24 +0100 Subject: [PATCH] minor c++ style --- src/text/scrptrun.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/text/scrptrun.cpp b/src/text/scrptrun.cpp index 0cbb2c839..750998764 100644 --- a/src/text/scrptrun.cpp +++ b/src/text/scrptrun.cpp @@ -22,7 +22,7 @@ #include -#define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) +#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) const char ScriptRun::fgClassID=0; @@ -124,7 +124,7 @@ UBool ScriptRun::next() if (scriptEnd >= charLimit) { return false; } - + scriptCode = USCRIPT_COMMON; for (scriptStart = scriptEnd; scriptEnd < charLimit; scriptEnd += 1) { @@ -178,7 +178,6 @@ UBool ScriptRun::next() if (sameScript(scriptCode, sc)) { if (scriptCode <= USCRIPT_INHERITED && sc > USCRIPT_INHERITED) { scriptCode = sc; - // now that we have a final script code, fix any open // characters we pushed before we knew the script code. while (startSP < parenSP) { @@ -205,4 +204,3 @@ UBool ScriptRun::next() return true; } -