summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/sharedemployee/employee.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/doc/snippets/sharedemployee/employee.h')
-rw-r--r--src/corelib/doc/snippets/sharedemployee/employee.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/corelib/doc/snippets/sharedemployee/employee.h b/src/corelib/doc/snippets/sharedemployee/employee.h
index 2df1f71c51..fe5e996708 100644
--- a/src/corelib/doc/snippets/sharedemployee/employee.h
+++ b/src/corelib/doc/snippets/sharedemployee/employee.h
@@ -1,7 +1,7 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
@@ -17,8 +17,8 @@
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
-** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
-** of its contributors may be used to endorse or promote products derived
+** * Neither the name of The Qt Company Ltd nor the names of its
+** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
@@ -63,7 +63,7 @@ class Employee
//! [1]
Employee() { d = new EmployeeData; }
//! [1] //! [2]
- Employee(int id, QString name) {
+ Employee(int id, const QString &name) {
d = new EmployeeData;
setId(id);
setName(name);
@@ -77,7 +77,7 @@ class Employee
//! [3]
void setId(int id) { d->id = id; }
//! [3] //! [4]
- void setName(QString name) { d->name = name; }
+ void setName(const QString &name) { d->name = name; }
//! [4]
//! [5]