Warning, file /sdk/clazy/tests/rule-of-three/main.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #include "main.h" 0002 #include <QtGui/QColor> 0003 #include <QtCore/QSharedDataPointer> 0004 #include <QtCore/QSet> 0005 struct Private 0006 { 0007 ~Private() { int a; }; 0008 }; 0009 0010 struct AnotherPrivate 0011 { 0012 AnotherPrivate(const AnotherPrivate &) {}; 0013 }; 0014 0015 0016 Q_GLOBAL_STATIC(QObject, s_a) 0017 0018 class MyPrivate; 0019 struct WithQSharedDataPointer 0020 { 0021 ~WithQSharedDataPointer(); 0022 WithQSharedDataPointer& operator=(const WithQSharedDataPointer &); 0023 0024 private: 0025 QSharedDataPointer<MyPrivate> d; 0026 };