Skip to content

Commit

Permalink
wordfmt: suppress clang-tidy warning [NullDereference]
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and poire-z committed Aug 2, 2024
1 parent 7848a7f commit c07cea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crengine/src/wordfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ vMove2NextLine(diagram_type *pDiag, drawfile_fontref tFontRef,
{
TRACE("antiword::vMove2NextLine()");
LFAIL(pDiag == NULL);
LFAIL(pDiag->pOutFile == NULL);
LFAIL(pDiag->pOutFile == NULL); // NOLINT(clang-analyzer-core.NullDereference)
LFAIL(usFontSize < MIN_FONT_SIZE || usFontSize > MAX_FONT_SIZE);

if ( (inside_p || inside_li) && !last_space_char )
Expand Down Expand Up @@ -416,7 +416,7 @@ vEndOfParagraph(diagram_type *pDiag,
{
TRACE("antiword::vEndOfParagraph()");
LFAIL(pDiag == NULL);
LFAIL(pDiag->pOutFile == NULL);
LFAIL(pDiag->pOutFile == NULL); // NOLINT(clang-analyzer-core.NullDereference)
LFAIL(usFontSize < MIN_FONT_SIZE || usFontSize > MAX_FONT_SIZE);
LFAIL(lAfterIndentation < 0);
//vEndOfParagraphXML(pDiag, 1);
Expand Down

0 comments on commit c07cea9

Please sign in to comment.