blob: f101a7bcb2abdb35f40a1681039aed3de11e1594 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "myobject.h"
MyObject::MyObject()
{
}
int MyObject::calculate(int value) const
{
int total = 0;
for (int i = 0; i <= value; ++i)
total += i;
return total;
}
|