Fix sqlite_connection.h, sqlite_statement.h 82/237582/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 1 Jul 2020 11:12:10 +0000 (20:12 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 1 Jul 2020 11:12:10 +0000 (20:12 +0900)
Remove unused header, friend class, add explicit keyword at constructor.

Change-Id: I8979902b2275a7de9882468613da30caf255f38e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/theme_provider/sqlite_connection.h
src/theme_provider/sqlite_statement.h

index 51a875d..4fa2146 100644 (file)
@@ -8,13 +8,11 @@
 #include <sqlite3.h>
 
 #include <memory>
-#include <mutex>
 #include <string>
 
 namespace ttm {
 namespace provider {
 
-class SQLiteTransaction;
 class SQLiteStatement;
 
 class SQLiteConnection : public std::enable_shared_from_this<SQLiteConnection> {
@@ -35,8 +33,6 @@ class SQLiteConnection : public std::enable_shared_from_this<SQLiteConnection> {
   bool IsValid();
 
  private:
-  friend class SQLiteTransaction;
-
   bool Connect(bool readonly);
   bool Disconnect();
   std::string GetErrorMessage() const;
index 1772e1b..e1a7229 100644 (file)
@@ -18,7 +18,7 @@ class SQLiteConnection;
 
 class SQLiteStatement {
  public:
-  SQLiteStatement(std::shared_ptr<SQLiteConnection> sql_conn,
+  explicit SQLiteStatement(std::shared_ptr<SQLiteConnection> sql_conn,
       sqlite3_stmt* stmt);
   virtual ~SQLiteStatement();