diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2010-08-06 11:32:29 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2010-08-06 11:32:29 (GMT) |
commit | 1f32f4013ab9178e8434bff847013a84491fe516 (patch) | |
tree | efffba77f5b105c61ff32c6cab5680b49e899e3b /doc/src/snippets | |
parent | fc4e9d15d4b85ade770cf92c10258a556fafa698 (diff) | |
download | Qt-1f32f4013ab9178e8434bff847013a84491fe516.zip Qt-1f32f4013ab9178e8434bff847013a84491fe516.tar.gz Qt-1f32f4013ab9178e8434bff847013a84491fe516.tar.bz2 |
Removed duplicate case for const variable snippet.
Reviewer: David Boddie
Task number: QTBUG-10411
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp index 088e043..0bd5fdf 100644 --- a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp +++ b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp @@ -87,14 +87,9 @@ void myFunction(bool useSubClass) // is equivalent to: const QScopedPointer<QWidget> p(new QWidget()); - QWidget *const p = new QWidget(); - // is equivalent to: - const QScopedPointer<QWidget> p(new QWidget()); - const QWidget *p = new QWidget(); // is equivalent to: QScopedPointer<const QWidget> p(new QWidget()); - //! [2] //! [3] |