summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-06-29 18:58:37 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:40:16 +0200
commit80e8ffc016a2b6724578405f6c773c4b6afdb7eb (patch)
tree3161de3f89c215197b338138c0239c79e1ce9c60
parent3117ee358c614cc9905e22f8fcd2522b2c9eaca3 (diff)
tubes: use correct casts
-rw-r--r--sc/source/ui/collab/contacts.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx
index 085237bc061e..bd6e6d457b36 100644
--- a/sc/source/ui/collab/contacts.cxx
+++ b/sc/source/ui/collab/contacts.cxx
@@ -65,9 +65,9 @@ class TubeContacts : public ModelessDialog
void Listen()
{
- ScDocShell *pScDocShell = reinterpret_cast<ScDocShell*> (SfxObjectShell::Current());
+ ScDocShell *pScDocShell = dynamic_cast<ScDocShell*> (SfxObjectShell::Current());
ScDocFunc *pDocFunc = pScDocShell ? &pScDocShell->GetDocFunc() : NULL;
- ScDocFuncSend *pSender = reinterpret_cast<ScDocFuncSend*> (pDocFunc);
+ ScDocFuncSend *pSender = dynamic_cast<ScDocFuncSend*> (pDocFunc);
if (!pSender)
{
delete pDocFunc;
@@ -83,7 +83,7 @@ class TubeContacts : public ModelessDialog
{
AccountContact *pAC = NULL;
if (maList.FirstSelected())
- pAC = reinterpret_cast<AccountContact*> (maList.FirstSelected()->GetUserData());
+ pAC = static_cast<AccountContact*> (maList.FirstSelected()->GetUserData());
if (pAC)
{
TpAccount* pAccount = pAC->mpAccount;