summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.co.uk>2010-08-05 15:45:53 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-05 15:46:15 (GMT)
commit0dfc5666d2b615b2c4c0c2f392771b001de9163b (patch)
treea80c992b2312378580512834d356c5c8367c41c8 /doc/src
parent8155ee1db55893876165936f4e9d551b45c0f35a (diff)
downloadQt-0dfc5666d2b615b2c4c0c2f392771b001de9163b.zip
Qt-0dfc5666d2b615b2c4c0c2f392771b001de9163b.tar.gz
Qt-0dfc5666d2b615b2c4c0c2f392771b001de9163b.tar.bz2
Remove useless QString::clear() from QSharedData example snippet.
Merge-request: 2443 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'doc/src')
-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() { }