Skip to content

Commit a80f905

Browse files
committed
Fixed implicit conversion of const char * to char *
1 parent 6f98fbe commit a80f905

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CppSQLite3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int sqlite3_decode_binary(const unsigned char *in, unsigned char *out);
2525
////////////////////////////////////////////////////////////////////////////////
2626

2727
CppSQLite3Exception::CppSQLite3Exception(const int nErrCode,
28-
char* szErrMess,
28+
const char* szErrMess,
2929
bool bDeleteMsg/*=true*/) :
3030
mnErrCode(nErrCode)
3131
{
@@ -36,7 +36,7 @@ CppSQLite3Exception::CppSQLite3Exception(const int nErrCode,
3636

3737
if (bDeleteMsg && szErrMess)
3838
{
39-
sqlite3_free(szErrMess);
39+
sqlite3_free((void*)szErrMess);
4040
}
4141
}
4242

CppSQLite3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CppSQLite3Exception
1919
public:
2020

2121
CppSQLite3Exception(const int nErrCode,
22-
char* szErrMess,
22+
const char* szErrMess,
2323
bool bDeleteMsg=true);
2424

2525
CppSQLite3Exception(const CppSQLite3Exception& e);

0 commit comments

Comments
 (0)