Remove some redundant inline keywords

This commit is contained in:
Sébastien Rombauts 2020-01-04 20:46:11 +01:00
parent d4bafc0e68
commit dcc623d745
2 changed files with 13 additions and 9 deletions

View File

@ -18,3 +18,7 @@ cmake --build .
# Build and run unit-tests (ie 'make test') # Build and run unit-tests (ie 'make test')
ctest --output-on-failure ctest --output-on-failure
# And with Valgrind
#valgrind --leak-check=full --error-exitcode=1 ./SQLiteCpp_example1
#valgrind --leak-check=full --error-exitcode=1 ./SQLiteCpp_tests

View File

@ -609,7 +609,7 @@ public:
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
/// Return the UTF-8 SQL Query. /// Return the UTF-8 SQL Query.
inline const std::string& getQuery() const const std::string& getQuery() const
{ {
return mQuery; return mQuery;
} }
@ -618,17 +618,17 @@ public:
std::string getExpandedSQL(); std::string getExpandedSQL();
/// Return the number of columns in the result set returned by the prepared statement /// Return the number of columns in the result set returned by the prepared statement
inline int getColumnCount() const int getColumnCount() const
{ {
return mColumnCount; return mColumnCount;
} }
/// true when a row has been fetched with executeStep() /// true when a row has been fetched with executeStep()
inline bool hasRow() const bool hasRow() const
{ {
return mbHasRow; return mbHasRow;
} }
/// true when the last executeStep() had no more row to fetch /// true when the last executeStep() had no more row to fetch
inline bool isDone() const bool isDone() const
{ {
return mbDone; return mbDone;
} }
@ -667,13 +667,13 @@ private:
~Ptr(); ~Ptr();
/// Inline cast operator returning the pointer to SQLite Database Connection Handle /// Inline cast operator returning the pointer to SQLite Database Connection Handle
inline operator sqlite3*() const operator sqlite3*() const
{ {
return mpSQLite; return mpSQLite;
} }
/// Inline cast operator returning the pointer to SQLite Statement Object /// Inline cast operator returning the pointer to SQLite Statement Object
inline operator sqlite3_stmt*() const operator sqlite3_stmt*() const
{ {
return mpStmt; return mpStmt;
} }
@ -696,7 +696,7 @@ private:
* *
* @param[in] aRet SQLite return code to test against the SQLITE_OK expected value * @param[in] aRet SQLite return code to test against the SQLITE_OK expected value
*/ */
inline void check(const int aRet) const void check(const int aRet) const
{ {
if (SQLite::OK != aRet) if (SQLite::OK != aRet)
{ {
@ -707,7 +707,7 @@ private:
/** /**
* @brief Check if there is a row of result returned by executeStep(), else throw a SQLite::Exception. * @brief Check if there is a row of result returned by executeStep(), else throw a SQLite::Exception.
*/ */
inline void checkRow() const void checkRow() const
{ {
if (false == mbHasRow) if (false == mbHasRow)
{ {
@ -718,7 +718,7 @@ private:
/** /**
* @brief Check if there is a Column index is in the range of columns in the result. * @brief Check if there is a Column index is in the range of columns in the result.
*/ */
inline void checkIndex(const int aIndex) const void checkIndex(const int aIndex) const
{ {
if ((aIndex < 0) || (aIndex >= mColumnCount)) if ((aIndex < 0) || (aIndex >= mColumnCount))
{ {