diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-05-17 15:59:06 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-05-17 16:08:40 +0200 |
commit | c7c5a96ee3ca0fe06933b35e04983b6fef01b5f6 (patch) | |
tree | 72373950464f1eea5a673ed59cc92ef27f9dacf0 /xmloff | |
parent | 414fd05699275b379ea9815e004497e591276c20 (diff) |
Use is() method for checkin reference validity
Change-Id: Ib294a2555a8512d1ca31cf1edc92659b9d7638ed
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 4d5543bbddbd..53bb6b70bced 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1116,11 +1116,11 @@ bool XMLTextImportHelper::IsDuplicateFrame(const OUString& sName, sal_Int32 nX, if (HasFrameByName(sName)) { uno::Reference<beans::XPropertySet> xOtherFrame; - if(m_xImpl->m_xTextFrames && m_xImpl->m_xTextFrames->hasByName(sName)) + if(m_xImpl->m_xTextFrames.is() && m_xImpl->m_xTextFrames->hasByName(sName)) xOtherFrame.set(m_xImpl->m_xTextFrames->getByName(sName), uno::UNO_QUERY); - else if(m_xImpl->m_xGraphics && m_xImpl->m_xGraphics->hasByName(sName)) + else if(m_xImpl->m_xGraphics.is() && m_xImpl->m_xGraphics->hasByName(sName)) xOtherFrame.set(m_xImpl->m_xGraphics->getByName(sName), uno::UNO_QUERY); - else if (m_xImpl->m_xObjects && m_xImpl->m_xObjects->hasByName(sName)) + else if (m_xImpl->m_xObjects.is() && m_xImpl->m_xObjects->hasByName(sName)) xOtherFrame.set(m_xImpl->m_xObjects->getByName(sName), uno::UNO_QUERY); Reference< XPropertySetInfo > xPropSetInfo = xOtherFrame->getPropertySetInfo(); |