diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 10:13:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 16:29:13 +0100 |
commit | a7fcb3ed07f535ebbd4e74b423fb6ccbb47e78cb (patch) | |
tree | 0356a8e9b08d2edbd57561a2bde4f2c446c44112 /svx/source/fmcomp/xmlexchg.cxx | |
parent | 2daceb87b9e14868833fa746ec6efe93fc2dfadb (diff) |
clang: Returning null reference
Change-Id: I2cfc14e73696a027283dfa5eef98f784505dc5a3
Diffstat (limited to 'svx/source/fmcomp/xmlexchg.cxx')
-rw-r--r-- | svx/source/fmcomp/xmlexchg.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/fmcomp/xmlexchg.cxx b/svx/source/fmcomp/xmlexchg.cxx index 058d36d85d81..0460e2596c92 100644 --- a/svx/source/fmcomp/xmlexchg.cxx +++ b/svx/source/fmcomp/xmlexchg.cxx @@ -59,13 +59,10 @@ namespace svx using namespace ::com::sun::star::datatransfer; Reference<XTransferable> &transfer = const_cast<Reference<XTransferable> &>(_rData.GetTransferable()); XTransferable *pInterface = transfer.get(); - OXFormsTransferable *pThis = dynamic_cast<OXFormsTransferable *>(pInterface); - DBG_ASSERT(pThis,"XTransferable is NOT an OXFormsTransferable???"); - return pThis->m_aDescriptor; + OXFormsTransferable& rThis = dynamic_cast<OXFormsTransferable&>(*pInterface); + return rThis.m_aDescriptor; } - - } // namespace svx |