File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ namespace tao::pq
3636 };
3737
3838 public:
39- connection_pool ( const private_key& /* unused*/ , std::string connection_info ) noexcept
40- : m_connection_info( std::move( connection_info ) )
39+ connection_pool ( const private_key& /* unused*/ , const std::string& connection_info ) noexcept
40+ : m_connection_info( connection_info )
4141 {}
4242
4343 [[nodiscard]] std::shared_ptr< pq::connection > connection ()
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace tao::pq
3939 explicit transaction ( const std::shared_ptr< pq::connection >& connection );
4040 virtual ~transaction () = 0 ;
4141
42- virtual bool v_is_direct () const = 0;
42+ [[nodiscard]] virtual bool v_is_direct () const noexcept = 0;
4343
4444 virtual void v_commit () = 0;
4545 virtual void v_rollback () = 0;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ namespace tao::pq
6363 }
6464
6565 private:
66- [[nodiscard]] bool v_is_direct () const override
66+ [[nodiscard]] bool v_is_direct () const noexcept override
6767 {
6868 return true ;
6969 }
@@ -129,7 +129,7 @@ namespace tao::pq
129129 void operator =( top_level_transaction&& ) = delete ;
130130
131131 private:
132- [[nodiscard]] bool v_is_direct () const override
132+ [[nodiscard]] bool v_is_direct () const noexcept override
133133 {
134134 return false ;
135135 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ namespace tao::pq
3333 }
3434 }
3535
36- [[nodiscard]] bool v_is_direct () const override
36+ [[nodiscard]] bool v_is_direct () const noexcept override
3737 {
3838 return false ;
3939 }
You can’t perform that action at this time.
0 commit comments