Skip to content

Commit

Permalink
QTestCharBuffer: kill copies and moves
Browse files Browse the repository at this point in the history
The compiler generated ones are broken. The RO5 exists for a reason...

Change-Id: Ibaa5322a7a1ad4ad06bd00e9d1c21bbbea6eb08c
Reviewed-by: Volker Hilsheimer <[email protected]>
  • Loading branch information
dangelog committed Jun 20, 2021
1 parent a8d7ecf commit 9f7f05d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/testlib/qabstracttestlogger_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ struct QTestCharBuffer
staticBuf[0] = '\0';
}

Q_DISABLE_COPY_MOVE(QTestCharBuffer)

inline ~QTestCharBuffer()
{
if (buf != staticBuf)
Expand Down

0 comments on commit 9f7f05d

Please sign in to comment.