summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/sharedemployee/employee.h
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/sharedemployee/employee.h')
-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() { }