summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_4026.cpp
blob: c0169c7334471d2beea9d05c380357aa92ebacd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
class foo {
public:
    int var;
 
    foo(int x) { var = x; }
};

int main() 
{
    int a = 2;
    a++;

    foo f(3);
    f.var++;
}

InternalFunctionImp::InternalFunctionImp(ExecState *exec)
  : ObjectImp(static_cast<FunctionPrototypeImp*>(exec->interpreter()->builtinFunctionPrototype().imp()))
{
  for (int z=0; z<count; z++)
  {
    TQString hlName = KateFactory::self()->schemaManager()->list().operator[](z);

    if (names.contains(hlName) < 1)
    {
      names << hlName;
      popupMenu()->insertItem ( hlName, this, TQT_SLOT(setSchema(int)), 0,  z+1);
    }
  }

  struct sockaddr_in *sin1 = (sockaddr_in *) s1.address();
  struct sockaddr_in *sin2 = (sockaddr_in *) s2.address();

  if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
  {
     tqWarning("[dcopserver] Corrupt data!");
     printf("[dcopserver] bytesLeft: %d, len: %d", bytesLeft, len);
     return result;
  }
  result.TQByteArray::resize( (uint)len );

	if (pbar->isVisible() && pbar->isEnabled() &&
		pbar->progress() != pbar->totalSteps())
	{
		++iter.data();
		if (iter.data() == 28)
			iter.data() = 0;
		iter.key()->update();
	}
}