Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
QSharedDataPointer::clone
T * clone()
Definition
qshareddata.h:221
base
static const uint base
Definition
qurlidna.cpp:20
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.10.0