diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/provider/MCMailProvider.cc | 14 | ||||
-rw-r--r-- | src/core/provider/MCNetService.cc | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/provider/MCMailProvider.cc b/src/core/provider/MCMailProvider.cc index c84fef36..43fd94f9 100644 --- a/src/core/provider/MCMailProvider.cc +++ b/src/core/provider/MCMailProvider.cc @@ -34,13 +34,13 @@ MailProvider::MailProvider() MailProvider::MailProvider(MailProvider * other) { init(); - mIdentifier = (String *) MC_SAFE_COPY(other->mIdentifier); - mImapServices = (Array *) MC_SAFE_COPY(other->mImapServices); - mSmtpServices = (Array *) MC_SAFE_COPY(other->mSmtpServices); - mPopServices = (Array *) MC_SAFE_COPY(other->mPopServices); - mDomainMatch = (Array *) MC_SAFE_COPY(other->mDomainMatch); - mMxSet = (Set *) MC_SAFE_COPY(other->mMxSet); - mMailboxPaths = (HashMap *) MC_SAFE_COPY(other->mMailboxPaths); + MC_SAFE_REPLACE_COPY(String, mIdentifier, other->mIdentifier); + MC_SAFE_REPLACE_COPY(Array, mImapServices, other->mImapServices); + MC_SAFE_REPLACE_COPY(Array, mSmtpServices, other->mSmtpServices); + MC_SAFE_REPLACE_COPY(Array, mPopServices, other->mPopServices); + MC_SAFE_REPLACE_COPY(Array, mDomainMatch, other->mDomainMatch); + MC_SAFE_REPLACE_COPY(Set, mMxSet, other->mMxSet); + MC_SAFE_REPLACE_COPY(HashMap, mMailboxPaths, other->mMailboxPaths); } MailProvider::~MailProvider() diff --git a/src/core/provider/MCNetService.cc b/src/core/provider/MCNetService.cc index 7339d8e1..f760dc61 100644 --- a/src/core/provider/MCNetService.cc +++ b/src/core/provider/MCNetService.cc @@ -25,7 +25,7 @@ NetService::NetService() NetService::NetService(NetService * other) { init(); - mHostname = (String *) MC_SAFE_COPY(other->mHostname); + MC_SAFE_REPLACE_COPY(String, mHostname, other->mHostname); mPort = other->mPort; mConnectionType = other->mConnectionType; } |