summaryrefslogtreecommitdiffstats
path: root/examples/corelib/tools/customtypesending/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/corelib/tools/customtypesending/message.cpp')
-rw-r--r--examples/corelib/tools/customtypesending/message.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/corelib/tools/customtypesending/message.cpp b/examples/corelib/tools/customtypesending/message.cpp
index c990768079..9386b93898 100644
--- a/examples/corelib/tools/customtypesending/message.cpp
+++ b/examples/corelib/tools/customtypesending/message.cpp
@@ -55,9 +55,8 @@ Message::Message()
}
Message::Message(const Message &other)
+ : m_body(other.m_body), m_headers(other.m_headers)
{
- m_body = other.m_body;
- m_headers = other.m_headers;
}
Message::~Message()
@@ -65,9 +64,8 @@ Message::~Message()
}
Message::Message(const QString &body, const QStringList &headers)
+ : m_body(body), m_headers(headers)
{
- m_body = body;
- m_headers = headers;
}
QString Message::body() const