Add most bugprone checks

This commit is contained in:
def 2020-11-04 19:03:10 +01:00
parent e8ba9427b5
commit ba53c7e20c
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,14 @@
Checks: >
-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-incorrect-roundings,
-bugprone-integer-division,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
-bugprone-parent-virtual-call,
-bugprone-unhandled-self-assignment,
clang-analyzer-*,
-clang-analyzer-optin.cplusplus.UninitializedObject,
-clang-analyzer-optin.cplusplus.VirtualCall,

View file

@ -304,7 +304,7 @@ void CMysqlConnection::GetString(int Col, char *pBuffer, int BufferSize) const
int CMysqlConnection::GetBlob(int Col, unsigned char *pBuffer, int BufferSize) const
{
#if defined(CONF_SQL)
auto Blob = m_pResults->getBlob(Col);
auto *Blob = m_pResults->getBlob(Col);
Blob->read((char *)pBuffer, BufferSize);
int NumRead = Blob->gcount();
delete Blob;