Skip to content

Commit a26529c

Browse files
committed
Use const/noexcept where possible
1 parent 9ed0c5f commit a26529c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pgsql.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class pg_result_t
3838
{
3939
public:
40-
pg_result_t() = default;
40+
pg_result_t() noexcept = default;
4141

4242
explicit pg_result_t(PGresult *result) noexcept : m_result(result) {}
4343

@@ -112,7 +112,7 @@ class pg_result_t
112112
}
113113

114114
/// Return true if this holds an actual result.
115-
explicit operator bool() { return m_result.get(); }
115+
explicit operator bool() const noexcept { return m_result.get(); }
116116

117117
private:
118118
struct pg_result_deleter_t

0 commit comments

Comments
 (0)