OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f27eb6f
)
use Q_DISABLE_COPY() macro to disable copying of QPODVector
author
Ivailo Monev
<xakepa10@gmail.com>
Thu, 30 Sep 2021 16:01:59 +0000
(19:01 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Thu, 30 Sep 2021 16:01:59 +0000
(19:01 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/declarative/qml/qpodvector_p.h
patch
|
blob
|
history
diff --git
a/src/declarative/qml/qpodvector_p.h
b/src/declarative/qml/qpodvector_p.h
index
df325b5
..
e4b2843
100644
(file)
--- a/
src/declarative/qml/qpodvector_p.h
+++ b/
src/declarative/qml/qpodvector_p.h
@@
-143,8
+143,7
@@
public:
QPODVector<T,Increment> &operator<<(const T &v) { append(v); return *this; }
private:
- QPODVector(const QPODVector &);
- QPODVector &operator=(const QPODVector &);
+ Q_DISABLE_COPY(QPODVector);
int m_count;
int m_capacity;
T *m_data;