diff options
author | Robin Burchell <robin.burchell@collabora.co.uk> | 2010-08-05 15:45:53 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-08-05 15:46:15 (GMT) |
commit | 0dfc5666d2b615b2c4c0c2f392771b001de9163b (patch) | |
tree | a80c992b2312378580512834d356c5c8367c41c8 /doc/src/snippets/sharedemployee | |
parent | 8155ee1db55893876165936f4e9d551b45c0f35a (diff) | |
download | Qt-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/snippets/sharedemployee')
-rw-r--r-- | doc/src/snippets/sharedemployee/employee.h | 2 |
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() { } |