From 28d23af3c6ac3fbdcf0d97e354813f42d2cf0ff4 Mon Sep 17 00:00:00 2001 From: Eugene Gagulin Date: Tue, 24 Dec 2019 11:33:44 +0300 Subject: [PATCH] Fix format. --- src/ui/ui.h | 8 +++----- src/ui/x11/x11_ui.cpp | 2 +- src/ui/x11/x11_ui.h | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ui/ui.h b/src/ui/ui.h index 6d0793afd..84fd67405 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -38,8 +38,7 @@ class UiWindow PointToDraw( const Point2d & point_ = Point2d(), const PaintColor & color_ = PaintColor() ) : point( point_ ) , color( color_ ) - { - } + {} Point2d point; PaintColor color; @@ -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; diff --git a/src/ui/x11/x11_ui.cpp b/src/ui/x11/x11_ui.cpp index 1d5bfecd6..4c9b684e7 100644 --- a/src/ui/x11/x11_ui.cpp +++ b/src/ui/x11/x11_ui.cpp @@ -94,7 +94,7 @@ void UiWindowX11::_display() } } -uint32_t UiWindowX11::_convertColor(const PaintColor &color) +uint32_t UiWindowX11::_convertColor( const PaintColor & color ) { return static_cast( ( color.red << 16 ) + ( color.green << 8 ) + color.blue ); } diff --git a/src/ui/x11/x11_ui.h b/src/ui/x11/x11_ui.h index e10034a58..fb949bfea 100644 --- a/src/ui/x11/x11_ui.h +++ b/src/ui/x11/x11_ui.h @@ -48,7 +48,7 @@ class UiWindowX11 : public UiWindow std::vector _rectangles; void _setupImage( const penguinV::Image & image ); - static uint32_t _convertColor(const PaintColor & color = PaintColor()); + static uint32_t _convertColor( const PaintColor & color = PaintColor() ); }; #endif