Skip to content

Commit 1b32a39

Browse files
committed
lint
1 parent 9cc2bef commit 1b32a39

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

c/driver/framework/client.h

+9-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
#include <cerrno>
2121
#include <memory>
22+
#include <string>
23+
#include <utility>
24+
#include <vector>
2225

2326
#include <arrow-adbc/adbc.h>
2427

@@ -478,7 +481,8 @@ class Statement {
478481
std::shared_ptr<internal::BaseStatement> base_;
479482

480483
friend class Connection;
481-
Statement(std::shared_ptr<internal::BaseStatement> base) : base_(std::move(base)) {}
484+
explicit Statement(std::shared_ptr<internal::BaseStatement> base)
485+
: base_(std::move(base)) {}
482486

483487
Status CheckValid() {
484488
if (!base_) {
@@ -535,7 +539,8 @@ class Connection {
535539
std::shared_ptr<internal::BaseConnection> base_;
536540

537541
friend class Database;
538-
Connection(std::shared_ptr<internal::BaseConnection> base) : base_(std::move(base)) {}
542+
explicit Connection(std::shared_ptr<internal::BaseConnection> base)
543+
: base_(std::move(base)) {}
539544

540545
Status CheckValid() {
541546
if (!base_) {
@@ -582,7 +587,8 @@ class Database {
582587
std::shared_ptr<internal::BaseDatabase> base_;
583588

584589
friend class Driver;
585-
Database(std::shared_ptr<internal::BaseDatabase> base) : base_(std::move(base)) {}
590+
explicit Database(std::shared_ptr<internal::BaseDatabase> base)
591+
: base_(std::move(base)) {}
586592

587593
Status CheckValid() {
588594
if (!base_) {

0 commit comments

Comments
 (0)