File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#include < cerrno>
21
21
#include < memory>
22
+ #include < string>
23
+ #include < utility>
24
+ #include < vector>
22
25
23
26
#include < arrow-adbc/adbc.h>
24
27
@@ -478,7 +481,8 @@ class Statement {
478
481
std::shared_ptr<internal::BaseStatement> base_;
479
482
480
483
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)) {}
482
486
483
487
Status CheckValid () {
484
488
if (!base_) {
@@ -535,7 +539,8 @@ class Connection {
535
539
std::shared_ptr<internal::BaseConnection> base_;
536
540
537
541
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)) {}
539
544
540
545
Status CheckValid () {
541
546
if (!base_) {
@@ -582,7 +587,8 @@ class Database {
582
587
std::shared_ptr<internal::BaseDatabase> base_;
583
588
584
589
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)) {}
586
592
587
593
Status CheckValid () {
588
594
if (!base_) {
You can’t perform that action at this time.
0 commit comments