Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Jul 28, 2021
1 parent e0d988e commit 221ddc8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions include/pqxx/row.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ public:
* column, exclusive. It looks just like a normal result row, except
* slices can be empty.
*/
[[deprecated("Row slicing is going away. File a bug if you need it.")]]
row slice(size_type sbegin, size_type send) const;
[[deprecated("Row slicing is going away. File a bug if you need it.")]] row
slice(size_type sbegin, size_type send) const;

/// Is this a row without fields? Can only happen to a slice.
[[nodiscard, deprecated("Row slicing is going away.")]]
PQXX_PURE bool empty() const noexcept;
[[nodiscard, deprecated("Row slicing is going away.")]] PQXX_PURE bool
empty() const noexcept;

/// Extract entire row's values into a tuple.
/** Converts to the types of the tuple's respective fields.
Expand Down
2 changes: 1 addition & 1 deletion src/robusttransaction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ enum tx_stat


constexpr auto committed{"committed"_zv}, aborted{"aborted"_zv},
in_progress{"in progress"_zv};
in_progress{"in progress"_zv};


/// Parse a nonempty transaction status string.
Expand Down
2 changes: 1 addition & 1 deletion src/util.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void pqxx::internal::check_unique_unregister(
namespace
{
constexpr char hex_digits[] = {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};


/// Translate a number (must be between 0 and 16 exclusive) to a hex digit.
Expand Down
4 changes: 2 additions & 2 deletions test/unit/test_blob.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void test_blob_accepts_std_filesystem_path()
{
#if __has_include(<filesystem>)
// A bug in gcc 8's ~std::filesystem::path() causes a run-time crash.
#if !defined(__GNUC__) || (__GNUC__ > 8)
# if !defined(__GNUC__) || (__GNUC__ > 8)

char const temp_file[] = "blob-test-filesystem-path.tmp";
std::basic_string<std::byte> const data{std::byte{'4'}, std::byte{'2'}};
Expand All @@ -593,7 +593,7 @@ void test_blob_accepts_std_filesystem_path()
pqxx::blob::to_buf(tx, id, buf, 10);
PQXX_CHECK_EQUAL(buf, data, "Wrong data from blob::from_file().");

#endif
# endif
#endif
}

Expand Down

0 comments on commit 221ddc8

Please sign in to comment.