aboutsummaryrefslogtreecommitdiffstats
path: root/tests/rule-of-three/main.cpp
blob: c2576456f62f7fc25271cc4a6a430a5d22b9639f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "main.h"
#include <QtGui/QColor>
#include <QtCore/QSharedDataPointer>
#include <QtCore/QSet>
struct Private
{
    ~Private() { int a; };
};

struct AnotherPrivate
{
    AnotherPrivate(const AnotherPrivate &) {};
};


Q_GLOBAL_STATIC(QObject, s_a)

class MyPrivate;
struct WithQSharedDataPointer
{
    ~WithQSharedDataPointer();
    WithQSharedDataPointer& operator=(const WithQSharedDataPointer &);

private:
    QSharedDataPointer<MyPrivate> d;
};