summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-24 09:26:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-24 09:26:00 +0000
commit0cf4dd5d1ef4c8dbf41f775b839d7148392e878e (patch)
tree73a929590cac47b1bdd4814d6c9634a4237bf85b /sw/source
parentd89844a5c966061ebfbfb00db217adb8d6566dc7 (diff)
cppcheck: silence bogus warning
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index e28ae1dd5f..b2b4bee4e3 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -1157,9 +1157,8 @@ BOOL SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
}
else
{
- SwMailMessage* pMessage = 0;
- uno::Reference< mail::XMailMessage > xMessage =
- pMessage = new SwMailMessage;
+ SwMailMessage* pMessage = new SwMailMessage;
+ uno::Reference< mail::XMailMessage > xMessage = pMessage;
if(rMergeDescriptor.pMailMergeConfigItem->IsMailReplyTo())
pMessage->setReplyToAddress(rMergeDescriptor.pMailMergeConfigItem->GetMailReplyTo());
pMessage->addRecipient( sMailAddress );