diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/extra/m_sqlite3.cpp | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/extra/m_sqlite3.cpp')
| -rw-r--r-- | src/modules/extra/m_sqlite3.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index e60217dff..1b315df27 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -49,15 +49,11 @@ typedef insp::flat_map<std::string, SQLConn*> ConnMap; class SQLite3Result : public SQL::Result { public: - int currentrow; - int rows; + int currentrow = 0; + int rows = 0; std::vector<std::string> columns; std::vector<SQL::Row> fieldlists; - SQLite3Result() : currentrow(0), rows(0) - { - } - int Rows() override { return rows; |
