Kaydet (Commit) 997b3c5f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708871 Unused pointer value

Change-Id: I10aa4e053f5f709144ef516c6c4a00df8d3a1f08
üst 7e6054c7
...@@ -2270,11 +2270,7 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode ) ...@@ -2270,11 +2270,7 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode )
} }
} }
bool bParaRTL = false; bool bParaRTL = aAttrIter.IsParaRTL();
const SvxFrameDirectionItem* pItem = (const SvxFrameDirectionItem*)
rNode.GetSwAttrSet().GetItem(RES_FRAMEDIR);
if ( aAttrIter.IsParaRTL())
bParaRTL = true;
int nNumberLevel = -1; int nNumberLevel = -1;
if (rNode.IsNumbered()) if (rNode.IsNumbered())
...@@ -2355,7 +2351,7 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode ) ...@@ -2355,7 +2351,7 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode )
cannot export that, its its ltr then that's ok as thats word's cannot export that, its its ltr then that's ok as thats word's
default. Otherwise we must add a RTL attribute to our export list default. Otherwise we must add a RTL attribute to our export list
*/ */
pItem = (const SvxFrameDirectionItem*) const SvxFrameDirectionItem* pItem = (const SvxFrameDirectionItem*)
rNode.GetSwAttrSet().GetItem(RES_FRAMEDIR); rNode.GetSwAttrSet().GetItem(RES_FRAMEDIR);
if ( if (
(!pItem || pItem->GetValue() == FRMDIR_ENVIRONMENT) && (!pItem || pItem->GetValue() == FRMDIR_ENVIRONMENT) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment