Skip to content

Commit

Permalink
Fix cpplint errors about line endings and NOLINT warnings about line …
Browse files Browse the repository at this point in the history
…size when better to keep oneline
  • Loading branch information
SRombauts committed Jul 25, 2021
1 parent 5d5a56b commit 94e8978
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions include/SQLiteCpp/Database.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// c++17: MinGW GCC version > 8
// c++17: Visual Studio 2017 version 15.7
#if ((__cplusplus >= 201703L) && ((!defined(__MINGW32__) && !defined(__MINGW64__)) || (__GNUC__ > 8))) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L))
#if ((__cplusplus >= 201703L) && ((!defined(__MINGW32__) && !defined(__MINGW64__)) || (__GNUC__ > 8))) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)) // NOLINT
#include <filesystem>
#endif // c++17

Expand Down Expand Up @@ -169,7 +169,7 @@ class Database

// c++17: MinGW GCC version > 8
// c++17: Visual Studio 2017 version 15.7
#if ((__cplusplus >= 201703L) && ((!defined(__MINGW32__) && !defined(__MINGW64__)) || (__GNUC__ > 8))) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L))
#if ((__cplusplus >= 201703L) && ((!defined(__MINGW32__) && !defined(__MINGW64__)) || (__GNUC__ > 8))) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)) // NOLINT

/**
* @brief Open the provided database std::filesystem::path.
Expand Down
10 changes: 5 additions & 5 deletions src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ bool Database::tableExists(const char* apTableName)
long long Database::getLastInsertRowid() const noexcept
{
return sqlite3_last_insert_rowid(getHandle());
}

}

// Get number of rows modified by last INSERT, UPDATE or DELETE statement (not DROP table).
int Database::getChanges() const noexcept
{
return sqlite3_changes(getHandle());
int Database::getChanges() const noexcept
{
return sqlite3_changes(getHandle());
}

// Get total number of rows modified by all INSERT, UPDATE or DELETE statement since connection.
Expand Down
10 changes: 5 additions & 5 deletions src/Statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ const char * Statement::getColumnDeclaredType(const int aIndex) const
{
return result;
}
}

}

// Get number of rows modified by last INSERT, UPDATE or DELETE statement (not DROP table).
int Statement::getChanges() const noexcept
{
return sqlite3_changes(mStmtPtr);
int Statement::getChanges() const noexcept
{
return sqlite3_changes(mStmtPtr);
}

int Statement::getBindParameterCount() const noexcept
Expand Down

0 comments on commit 94e8978

Please sign in to comment.