Skip to content

Commit

Permalink
Fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
fullset committed Dec 24, 2019
1 parent a087eb9 commit 28d23af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class UiWindow
PointToDraw( const Point2d & point_ = Point2d(), const PaintColor & color_ = PaintColor() )
: point( point_ )
, color( color_ )
{
}
{}

Point2d point;
PaintColor color;
Expand All @@ -49,10 +48,9 @@ class UiWindow
{
LineToDraw( const Point2d & start_ = Point2d(), const Point2d & end_ = Point2d(), const PaintColor & color_ = PaintColor() )
: start( start_ )
, end ( end_ )
, end( end_ )
, color( color_ )
{
}
{}

Point2d start;
Point2d end;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/x11/x11_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void UiWindowX11::_display()
}
}

uint32_t UiWindowX11::_convertColor(const PaintColor &color)
uint32_t UiWindowX11::_convertColor( const PaintColor & color )
{
return static_cast<uint32_t>( ( color.red << 16 ) + ( color.green << 8 ) + color.blue );
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/x11/x11_ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class UiWindowX11 : public UiWindow
std::vector<RectangleToDraw> _rectangles;

void _setupImage( const penguinV::Image & image );
static uint32_t _convertColor(const PaintColor & color = PaintColor());
static uint32_t _convertColor( const PaintColor & color = PaintColor() );
};

#endif

0 comments on commit 28d23af

Please sign in to comment.