summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-02-23 12:43:50 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-02-23 12:43:50 (GMT)
commit28e3d3516ebe88f7353fde44194aba5b7d1d8710 (patch)
tree0a0470a624e585cbfdb9763e145b0b2dacd62daa /doc/src/snippets/code
parent9629681e7b3d69456bd6c5905c267b3d08b6243f (diff)
downloadQt-28e3d3516ebe88f7353fde44194aba5b7d1d8710.zip
Qt-28e3d3516ebe88f7353fde44194aba5b7d1d8710.tar.gz
Qt-28e3d3516ebe88f7353fde44194aba5b7d1d8710.tar.bz2
doc: Added QScopedArrayPointer and corrected QScopedPointer snippet.
Task: QTBUG-7766
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r--doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp
index c068ba9..4158388 100644
--- a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp
+++ b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp
@@ -128,7 +128,7 @@ private:
QScopedPointer<int, QScopedPointerArrayDeleter<int> > arrayPointer(new int[42]);
// this QScopedPointer frees its data using free():
-QScopedPointer<int, QScopedPointerPodDeleter<int> > podPointer(reinterpret_cast<int *>(malloc(42)));
+QScopedPointer<int, QScopedPointerPodDeleter> podPointer(reinterpret_cast<int *>(malloc(42)));
// this struct calls "myCustomDeallocator" to delete the pointer
struct ScopedPointerCustomDeleter