Skip to content

Commit

Permalink
formatting fixes to satisfy clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Mar 25, 2024
1 parent 654759e commit 2d68680
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/backend/common/chart_renderables.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Histogram : public ChartRenderableBase<detail::histogram_impl> {

Histogram(const fg_histogram pOther)
: ChartRenderableBase<detail::histogram_impl>(
reinterpret_cast<Histogram*>(pOther)->impl()) {}
reinterpret_cast<Histogram *>(pOther)->impl()) {}
};

class Plot : public ChartRenderableBase<detail::plot_impl> {
Expand All @@ -48,7 +48,7 @@ class Plot : public ChartRenderableBase<detail::plot_impl> {

Plot(const fg_plot pOther)
: ChartRenderableBase<detail::plot_impl>(
reinterpret_cast<Plot*>(pOther)->impl()) {}
reinterpret_cast<Plot *>(pOther)->impl()) {}

inline void setMarkerSize(const float pMarkerSize) {
mShrdPtr->setMarkerSize(pMarkerSize);
Expand Down Expand Up @@ -82,7 +82,7 @@ class Surface : public ChartRenderableBase<detail::surface_impl> {

Surface(const fg_surface pOther)
: ChartRenderableBase<detail::surface_impl>(
reinterpret_cast<Surface*>(pOther)->impl()) {}
reinterpret_cast<Surface *>(pOther)->impl()) {}
};

class VectorField : public ChartRenderableBase<detail::vector_field_impl> {
Expand All @@ -100,7 +100,7 @@ class VectorField : public ChartRenderableBase<detail::vector_field_impl> {

VectorField(const fg_vector_field pOther)
: ChartRenderableBase<detail::vector_field_impl>(
reinterpret_cast<VectorField*>(pOther)->impl()) {}
reinterpret_cast<VectorField *>(pOther)->impl()) {}

inline unsigned dbo() const { return mShrdPtr->directions(); }

Expand Down
2 changes: 1 addition & 1 deletion src/backend/common/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pair<vec3, float> calcRotationFromArcBall(const vec2& lastPos,
auto project = [](const float pX, const float pY, const float pWidth,
const float pHeight) {
glm::vec3 P = glm::vec3((2.0f * pX) / pWidth - 1.0f,
(2.0f * pY) / pHeight - 1.0f, 0.0f);
(2.0f * pY) / pHeight - 1.0f, 0.0f);
float xySqrdSum = P.x * P.x + P.y * P.y;
float rSqrd = (ARC_BALL_RADIUS * ARC_BALL_RADIUS);
float rSqrdBy2 = rSqrd / 2.0f;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/opengl/gl_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GLuint screenQuadVAO(const int pWindowId) {

if (svaoMap.find(pWindowId) == svaoMap.end()) {
static const float texcords[8] = {0.0, 1.0, 1.0, 1.0,
1.0, 0.0, 0.0, 0.0};
1.0, 0.0, 0.0, 0.0};
static const uint32_t indices[6] = {0, 1, 2, 0, 2, 3};

GLuint tbo = createBuffer(GL_ARRAY_BUFFER, 8, texcords, GL_STATIC_DRAW);
Expand Down

0 comments on commit 2d68680

Please sign in to comment.