summaryrefslogtreecommitdiff
path: root/sc/source/ui/collab/contacts.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-07-01 23:46:44 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:40:22 +0200
commit17c549221427bde2390368be39f48134409a933f (patch)
tree4135e2ba349ae7aeffd3fae6dcf27a84bce7f3f2 /sc/source/ui/collab/contacts.cxx
parent44b32113852758a0b14d2f52b072d6d96d659f27 (diff)
tubes: reduce the use of boost::shared_ptr
Change-Id: Iafb38cf635ac8a967e5a94965f537fe0fa021f87
Diffstat (limited to 'sc/source/ui/collab/contacts.cxx')
-rw-r--r--sc/source/ui/collab/contacts.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx
index 078bcdd4c3ec..f15c9e0f63b1 100644
--- a/sc/source/ui/collab/contacts.cxx
+++ b/sc/source/ui/collab/contacts.cxx
@@ -70,9 +70,8 @@ class TubeContacts : public ModelessDialog
ScDocFuncSend *pSender = dynamic_cast<ScDocFuncSend*> (pDocFunc);
if (!pSender)
{
- delete pDocFunc;
- boost::shared_ptr<ScDocFuncDirect> pDirect( new ScDocFuncDirect( *pScDocShell ) );
- boost::shared_ptr<ScDocFuncRecv> pReceiver( new ScDocFuncRecv( pDirect ) );
+ ScDocFuncDirect *pDirect = dynamic_cast<ScDocFuncDirect*> (pDocFunc);
+ ScDocFuncRecv *pReceiver = new ScDocFuncRecv( pDirect );
pSender = new ScDocFuncSend( *pScDocShell, pReceiver );
pScDocShell->SetDocFunc( pSender );
}