summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-07-27 22:40:39 (GMT)
committerRobin Burchell <robin.burchell@collabora.co.uk>2010-07-27 22:40:39 (GMT)
commitd754440bf7ce91a2f4a56a8873b6bfa546719c08 (patch)
treea8e58f7845f50e19cef3690418b03cf80300e04a /doc/src/snippets
parentaafdc4d4c795ee25a0da1087fada999fbe6c47bc (diff)
downloadQt-d754440bf7ce91a2f4a56a8873b6bfa546719c08.zip
Qt-d754440bf7ce91a2f4a56a8873b6bfa546719c08.tar.gz
Qt-d754440bf7ce91a2f4a56a8873b6bfa546719c08.tar.bz2
Remove useless QString::clear() from QSharedData example snippet.
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/sharedemployee/employee.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/sharedemployee/employee.h b/doc/src/snippets/sharedemployee/employee.h
index 18b47e0..2c9ba6f 100644
--- a/doc/src/snippets/sharedemployee/employee.h
+++ b/doc/src/snippets/sharedemployee/employee.h
@@ -48,7 +48,7 @@
class EmployeeData : public QSharedData
{
public:
- EmployeeData() : id(-1) { name.clear(); }
+ EmployeeData() : id(-1) { }
EmployeeData(const EmployeeData &other)
: QSharedData(other), id(other.id), name(other.name) { }
~EmployeeData() { }