diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-07-30 12:49:46 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-07-30 11:46:15 +0000 |
commit | 4e3a7ed3ef5226256ae6aee1a73e264768aac8f4 (patch) | |
tree | e763e7497f07b8e595ef8e3ed8cb04b312543269 /src/serviceframework | |
parent | e92d654f376847fe14b8ebd8af65ce8fee8213d6 (diff) |
Prospective build fix for Visual Studio 2013
VS2013 rightfully complains that when calling the assignment operator, the
compiler generated one needs visibility to the private class. Since we don't
have that, we must explicitly define the assignment operator. This is binary
compatible and common practice.
Change-Id: Id2558908d0b2841f8dfb6da15cb2614470c4f215
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/serviceframework')
-rw-r--r-- | src/serviceframework/qserviceclientcredentials.cpp | 9 | ||||
-rw-r--r-- | src/serviceframework/qserviceclientcredentials.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/serviceframework/qserviceclientcredentials.cpp b/src/serviceframework/qserviceclientcredentials.cpp index 80149145..c6b5d3d6 100644 --- a/src/serviceframework/qserviceclientcredentials.cpp +++ b/src/serviceframework/qserviceclientcredentials.cpp @@ -65,6 +65,15 @@ QServiceClientCredentials::QServiceClientCredentials(const QServiceClientCredent /*! \internal */ +QServiceClientCredentials &QServiceClientCredentials::operator=(const QServiceClientCredentials &other) +{ + d = other.d; + return *this; +} + +/*! + \internal +*/ QServiceClientCredentials::~QServiceClientCredentials() { } diff --git a/src/serviceframework/qserviceclientcredentials.h b/src/serviceframework/qserviceclientcredentials.h index a5e4cdb9..02a72391 100644 --- a/src/serviceframework/qserviceclientcredentials.h +++ b/src/serviceframework/qserviceclientcredentials.h @@ -49,6 +49,7 @@ public: virtual ~QServiceClientCredentials(); QServiceClientCredentials(const QServiceClientCredentials &other); + QServiceClientCredentials &operator=(const QServiceClientCredentials &other); qintptr getProcessIdentifier() const; qintptr getUserIdentifier() const; |