blob: 26f1cf0a62a0527bc8de1671c0efe711c36ce7fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 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:
LIBMINIMAL_DEFAULT_COPY_MOVE(PointerHolder)
explicit PointerHolder(void *ptr) : m_pointer(ptr) {}
~PointerHolder() = default;
inline void *pointer() const { return m_pointer; }
private:
void *m_pointer;
};
#endif // POINTERHOLDER_H
|