diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:24:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:41 +0100 |
commit | 374b4f349f1d1cb3b33004580ebc903d206f28ff (patch) | |
tree | b26a69ad1287dc10f691cbb01504a0ba671dc591 /starmath/source/rtfexport.cxx | |
parent | e246e5e3cf2722beb8a633259c0c395b498f58c6 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ife1eef04d905f12308b64b971176c2f045a1b268
Diffstat (limited to 'starmath/source/rtfexport.cxx')
-rw-r--r-- | starmath/source/rtfexport.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/rtfexport.cxx b/starmath/source/rtfexport.cxx index bb08685b4d65..de092ea59d76 100644 --- a/starmath/source/rtfexport.cxx +++ b/starmath/source/rtfexport.cxx @@ -15,7 +15,7 @@ SmRtfExport::SmRtfExport(const SmNode* pIn) : SmWordExportBase(pIn) - , m_pBuffer(0) + , m_pBuffer(nullptr) , m_nEncoding(RTL_TEXTENCODING_DONTKNOW) { } @@ -207,7 +207,7 @@ void SmRtfExport::HandleOperator(const SmOperNode* pNode, int nLevel) case TCOPROD: case TSUM: { - const SmSubSupNode* subsup = pNode->GetSubNode(0)->GetType() == NSUBSUP ? static_cast<const SmSubSupNode*>(pNode->GetSubNode(0)) : 0; + const SmSubSupNode* subsup = pNode->GetSubNode(0)->GetType() == NSUBSUP ? static_cast<const SmSubSupNode*>(pNode->GetSubNode(0)) : nullptr; const SmNode* operation = subsup ? subsup->GetBody() : pNode->GetSubNode(0); m_pBuffer->append("{" LO_STRING_SVTOOLS_RTF_MNARY " "); m_pBuffer->append("{" LO_STRING_SVTOOLS_RTF_MNARYPR " "); @@ -249,7 +249,7 @@ void SmRtfExport::HandleOperator(const SmOperNode* pNode, int nLevel) HandleNode(pNode->GetSymbol(), nLevel + 1); m_pBuffer->append("}"); // me m_pBuffer->append("{" LO_STRING_SVTOOLS_RTF_MLIM " "); - if (const SmSubSupNode* subsup = pNode->GetSubNode(0)->GetType() == NSUBSUP ? static_cast<const SmSubSupNode*>(pNode->GetSubNode(0)) : 0) + if (const SmSubSupNode* subsup = pNode->GetSubNode(0)->GetType() == NSUBSUP ? static_cast<const SmSubSupNode*>(pNode->GetSubNode(0)) : nullptr) if (subsup->GetSubSup(CSUB)) HandleNode(subsup->GetSubSup(CSUB), nLevel + 1); m_pBuffer->append("}"); // mlim |