blob: 7437a341b5168f6f38596833f97bd5585c76ff0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "sample.h"
namespace sample
{
sample::sample(int value) : m_value(value)
{
}
int sample::value() const
{
return m_value;
}
bool operator==(const sample&s1, const sample&s2)
{
return s1.value() == s2.value();
}
} // namespace sample
|