aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/renaming.cpp
blob: d67b42a5123f8f51dfd6a376783493088b33f46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "renaming.h"

#include <iostream>

int ToBeRenamedValue::value() const
{
        return m_value;
}

void ToBeRenamedValue::setValue(int v)
{
    m_value = v;
}

void RenamedUser::useRenamedValue(const ToBeRenamedValue &v)
{
    std::cout << __FUNCTION__ << ' ' << v.value() << '\n';
}