~ps-jenkins/compiz/latestsnapshot-10.9.9daily13.06.1913.04-0ubuntu1

« back to all changes in this revision

Viewing changes to plugins/regex/src/regex.cpp

  • Committer: MC Return
  • Date: 2012-12-01 17:07:09 UTC
  • mto: This revision was merged to the branch mainline in revision 3503.
  • Revision ID: mc.return@gmx.net-20121201170709-9us3w77m7b0cr4vu
Simplified declaration of int i by moving it into the for loop, where i is eventually used

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
int
148
148
RegexExp::matches (const CompString& str)
149
149
{
150
 
    unsigned int i;
151
 
 
152
 
    for (i = 0; i < sizeof (prefix) / sizeof (prefix[0]); i++)
 
150
    for (unsigned int i = 0; i < sizeof (prefix) / sizeof (prefix[0]); i++)
153
151
        if (str.compare (0, prefix[i].length, prefix[i].name) == 0)
154
152
            return (int) i;
155
153