summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoparagraph.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoparagraph.cxx')
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index c755f8ba7dd7..6eb73d3c0147 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -249,7 +249,7 @@ SwXParagraph::CreateXParagraph(SwDoc & rDoc, SwTextNode *const pTextNode,
SwPosition Pos(*pTextNode);
xParentText.set(::sw::CreateParentXText( rDoc, Pos ));
}
- SwXParagraph *const pXPara( (pTextNode)
+ SwXParagraph *const pXPara( pTextNode
? new SwXParagraph(xParentText, *pTextNode, nSelStart, nSelEnd)
: new SwXParagraph);
// this is why the constructor is private: need to acquire pXPara here
@@ -1417,7 +1417,7 @@ uno::Reference<frame::XModel> SwXParagraph::GetModel()
if (pTextNode)
{
SwDocShell const*const pShell( pTextNode->GetDoc()->GetDocShell() );
- return (pShell) ? pShell->GetModel() : nullptr;
+ return pShell ? pShell->GetModel() : nullptr;
}
return nullptr;
}