Skip to content

Commit

Permalink
Apply some of the clang-tidy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Oct 22, 2022
1 parent abb6e4d commit c7a74b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/messages/layouts/MessageLayoutContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void MessageLayoutContainer::breakLine()
int newX = element->getRect().x() + xOffset +
int(this->margin.left * this->scale_);

int yShift;
int yShift = 0;
switch (element->getAlign())
{
case LayoutElementVerticalAlign::Top:
Expand Down
4 changes: 2 additions & 2 deletions src/messages/layouts/MessageLayoutElement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class VerticalExpandingMessageLayoutElement : public MessageLayoutElement
VerticalExpandingMessageLayoutElement(
MessageElement &creator_, const QSize &initialSize_,
LayoutElementVerticalAlign align = LayoutElementVerticalAlign::Bottom);
virtual ~VerticalExpandingMessageLayoutElement() = default;
~VerticalExpandingMessageLayoutElement() override = default;

void expandBottom(int bottom);
};
Expand Down Expand Up @@ -186,7 +186,7 @@ class ReplyCurveLayoutElement : public VerticalExpandingMessageLayoutElement
{
public:
ReplyCurveLayoutElement(MessageElement &creator, int width, float thickness,
float radius, float lMargin);
float radius, float neededMargin);

protected:
void paint(QPainter &painter) override;
Expand Down

0 comments on commit c7a74b5

Please sign in to comment.