mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Add most bugprone checks
This commit is contained in:
parent
e8ba9427b5
commit
ba53c7e20c
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue