Skip to content

Commit

Permalink
Test cpplint & cppcheck with voluntary errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SRombauts committed Aug 21, 2024
1 parent e872fcd commit 703d061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/SQLiteCpp/Transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SQLITECPP_API Transaction
*
* Exception is thrown in case of error, then the Transaction is NOT initiated.
*/
explicit Transaction(Database& aDatabase);
Transaction(Database& aDatabase);

/**
* @brief Begins the SQLite transaction with the specified behavior.
Expand Down
3 changes: 3 additions & 0 deletions src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ Database::Database(const char* apFilename,
{
setBusyTimeout(aBusyTimeoutMs);
}
//TODO
int*p=nullptr;
*p=666;
}

// Deleter functor to use with smart pointers to close the SQLite database connection in an RAII fashion.
Expand Down

0 comments on commit 703d061

Please sign in to comment.