Ignore:
Timestamp:
12/14/12 14:30:35 (12 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/report/includes/classes/SqlParser.class.php

    r5307 r7655  
    118118    protected function getQuantidadeIfs($texto) { 
    119119        $qtd = 0; 
    120         for ($i = 0;  $i <= strlen($texto); $i++) { 
     120        for ($i = 0;  $i <= strlen($texto); ++$i) { 
    121121            if (strtolower(substr($texto,$i,3)) == "#if") { 
    122122                $qtd = $qtd + 1; 
     
    128128    protected function numerarCondicao($texto,$num) { 
    129129        $qtd = 0; 
    130         for ($i = 0;  $i <= strlen($texto); $i++) { 
     130        for ($i = 0;  $i <= strlen($texto); ++$i) { 
    131131            if (strtolower(substr($texto,$i,3)) == "#if") { 
    132132                $qtd = $qtd + 1; 
     
    134134                $condicoesfechadas = 0; 
    135135                if ($qtd == $num) { 
    136                     for ($j = $i+1;  $j <= strlen($texto); $j++) { 
     136                    for ($j = $i+1;  $j <= strlen($texto); ++$j) { 
    137137                         
    138138                        if ((strtolower(substr($texto,$j,5)) == "#/if#")) { 
Note: See TracChangeset for help on using the changeset viewer.