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

#ifndef POINTERHOLDER_H
#define POINTERHOLDER_H

#include "libsamplemacros.h"

class PointerHolder
{
public:
    explicit PointerHolder(void* ptr) : m_pointer(ptr) {}
    ~PointerHolder() {}
    inline void* pointer() const { return m_pointer; }
private:
    void* m_pointer;
};

#endif // POINTERHOLDER_H