Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
src_corelib_tools_qshareddata.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
class
EmployeeData
;
7
9
template
<>
10
EmployeeData
*
QSharedDataPointer<EmployeeData>::clone
()
11
{
12
return
d
->clone();
13
}
15
17
QExplicitlySharedDataPointer<Base>
base
(
new
Base);
18
QExplicitlySharedDataPointer<Derived>
derived
(
base
);
// !!! DANGER !!!
EmployeeData
[0]
Definition
employee.h:12
QExplicitlySharedDataPointer
\inmodule QtCore
Definition
qshareddata.h:130
QSharedDataPointer::clone
T * clone()
Definition
qshareddata.h:221
base
QString base
Definition
src_corelib_io_qfileinfo.cpp:49
d
double d
Definition
src_corelib_text_qlocale.cpp:9
derived
QExplicitlySharedDataPointer< Derived > derived(base)
qtbase
src
corelib
doc
snippets
code
src_corelib_tools_qshareddata.cpp
Generated by
1.9.7