Skip to content

Commit

Permalink
Fix clang-tidy problems
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Feb 2, 2020
1 parent 61e8b4f commit ccb1ca1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/tao/pq/connection_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ namespace tao::pq
};

public:
connection_pool( const private_key& /*unused*/, std::string connection_info ) noexcept
: m_connection_info( std::move( connection_info ) )
connection_pool( const private_key& /*unused*/, const std::string& connection_info ) noexcept
: m_connection_info( connection_info )
{}

[[nodiscard]] std::shared_ptr< pq::connection > connection()
Expand Down
2 changes: 1 addition & 1 deletion include/tao/pq/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace tao::pq
explicit transaction( const std::shared_ptr< pq::connection >& connection );
virtual ~transaction() = 0;

virtual bool v_is_direct() const = 0;
[[nodiscard]] virtual bool v_is_direct() const noexcept = 0;

virtual void v_commit() = 0;
virtual void v_rollback() = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pq/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace tao::pq
}

private:
[[nodiscard]] bool v_is_direct() const override
[[nodiscard]] bool v_is_direct() const noexcept override
{
return true;
}
Expand Down Expand Up @@ -129,7 +129,7 @@ namespace tao::pq
void operator=( top_level_transaction&& ) = delete;

private:
[[nodiscard]] bool v_is_direct() const override
[[nodiscard]] bool v_is_direct() const noexcept override
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pq/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace tao::pq
}
}

[[nodiscard]] bool v_is_direct() const override
[[nodiscard]] bool v_is_direct() const noexcept override
{
return false;
}
Expand Down

0 comments on commit ccb1ca1

Please sign in to comment.