aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/sample.cpp
blob: 5b5f8588b961e9ee1afaa68e0d03074ecad93933 (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