diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-06-29 18:58:37 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:40:16 +0200 |
commit | 80e8ffc016a2b6724578405f6c773c4b6afdb7eb (patch) | |
tree | 3161de3f89c215197b338138c0239c79e1ce9c60 | |
parent | 3117ee358c614cc9905e22f8fcd2522b2c9eaca3 (diff) |
tubes: use correct casts
-rw-r--r-- | sc/source/ui/collab/contacts.cxx | 6 |
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; |