HttpAuthentication: Add explicit copy & assignment constructors.
So that we don't copy the BLocker. Fixes part of the build.
This commit is contained in:
@@ -42,6 +42,10 @@ public:
|
|||||||
BHttpAuthentication();
|
BHttpAuthentication();
|
||||||
BHttpAuthentication(const BString& username,
|
BHttpAuthentication(const BString& username,
|
||||||
const BString& password);
|
const BString& password);
|
||||||
|
BHttpAuthentication(
|
||||||
|
const BHttpAuthentication& other);
|
||||||
|
BHttpAuthentication& operator=(
|
||||||
|
const BHttpAuthentication& other);
|
||||||
|
|
||||||
// Field modification
|
// Field modification
|
||||||
void SetUserName(const BString& username);
|
void SetUserName(const BString& username);
|
||||||
|
|||||||
@@ -53,6 +53,43 @@ BHttpAuthentication::BHttpAuthentication(const BString& username, const BString&
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BHttpAuthentication::BHttpAuthentication(const BHttpAuthentication& other)
|
||||||
|
:
|
||||||
|
fAuthenticationMethod(other.fAuthenticationMethod),
|
||||||
|
fUserName(other.fUserName),
|
||||||
|
fPassword(other.fPassword),
|
||||||
|
fRealm(other.fRealm),
|
||||||
|
fDigestNonce(other.fDigestNonce),
|
||||||
|
fDigestCnonce(other.fDigestCnonce),
|
||||||
|
fDigestNc(other.fDigestNc),
|
||||||
|
fDigestOpaque(other.fDigestOpaque),
|
||||||
|
fDigestStale(other.fDigestStale),
|
||||||
|
fDigestAlgorithm(other.fDigestAlgorithm),
|
||||||
|
fDigestQop(other.fDigestQop),
|
||||||
|
fAuthorizationString(other.fAuthorizationString)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BHttpAuthentication& BHttpAuthentication::operator=(
|
||||||
|
const BHttpAuthentication& other)
|
||||||
|
{
|
||||||
|
fAuthenticationMethod = other.fAuthenticationMethod;
|
||||||
|
fUserName = other.fUserName;
|
||||||
|
fPassword = other.fPassword;
|
||||||
|
fRealm = other.fRealm;
|
||||||
|
fDigestNonce = other.fDigestNonce;
|
||||||
|
fDigestCnonce = other.fDigestCnonce;
|
||||||
|
fDigestNc = other.fDigestNc;
|
||||||
|
fDigestOpaque = other.fDigestOpaque;
|
||||||
|
fDigestStale = other.fDigestStale;
|
||||||
|
fDigestAlgorithm = other.fDigestAlgorithm;
|
||||||
|
fDigestQop = other.fDigestQop;
|
||||||
|
fAuthorizationString = other.fAuthorizationString;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark Field modification
|
// #pragma mark Field modification
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user