Skip to content

Commit 64d4c96

Browse files
committed
Use UPPERCASE for constants used in templates
1 parent 142857d commit 64d4c96

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/geom.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ class multigeometry_t
198198
using iterator = typename std::vector<GEOM>::iterator;
199199
using value_type = GEOM;
200200

201-
static constexpr bool const for_point = std::is_same_v<GEOM, point_t>;
201+
static constexpr bool const FOR_POINT = std::is_same_v<GEOM, point_t>;
202202

203203
[[nodiscard]] std::size_t num_geometries() const noexcept
204204
{
205205
return m_geometry.size();
206206
}
207207

208208
GEOM &
209-
add_geometry(typename std::conditional_t<for_point, point_t, GEOM &&> geom)
209+
add_geometry(typename std::conditional_t<FOR_POINT, point_t, GEOM &&> geom)
210210
{
211211
m_geometry.push_back(std::forward<GEOM>(geom));
212212
return m_geometry.back();

src/pgsql.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,11 @@ class pg_conn_t
318318
// It needs to be large enough to hold all parameters without resizing
319319
// so that pointers into the strings in that vector remain valid
320320
// after new parameters have been added.
321-
constexpr auto const total_buffers_needed =
321+
constexpr auto const TOTAL_BUFFERS_NEEDED =
322322
(0 + ... + buffers_needed<std::decay_t<TArgs>>());
323+
323324
std::vector<std::string> exec_params;
324-
exec_params.reserve(total_buffers_needed);
325+
exec_params.reserve(TOTAL_BUFFERS_NEEDED);
325326

326327
std::array<int, sizeof...(params)> lengths = {0};
327328
std::array<int, sizeof...(params)> bins = {0};

0 commit comments

Comments
 (0)