summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qsharedpointer/wrapper.cpp
blob: 07c837304e2d8e0c6193af7d9bfcfb9591be8b0c (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

#ifdef QT_SHAREDPOINTER_TRACK_POINTERS
# undef QT_SHAREDPOINTER_TRACK_POINTERS
#endif
#include <QtCore/qsharedpointer.h>
#include "wrapper.h"

Wrapper::Wrapper(const QSharedPointer<int> &value)
        : ptr(value)
{
}

Wrapper::~Wrapper()
{
}

Wrapper Wrapper::create()
{
    return Wrapper(QSharedPointer<int>(new int(-47)));
}