diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /vcl/unx | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 22 | ||||
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index 700308b385f3..27886a131b9c 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -958,7 +958,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, if( xPixmap ) returnVal = NWRenderPixmapToScreen( xPixmap.get(), xMask.get(), aPixmapRect) && returnVal; - return( returnVal ); + return returnVal; } @@ -1333,7 +1333,7 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, returnVal=true; } - return( returnVal ); + return returnVal; } /************************************************************************ @@ -1778,7 +1778,7 @@ static Rectangle NWGetButtonArea( SalX11Screen nScreen, aRect = Rectangle( Point( x, y ), Size( w, h ) ); - return( aRect ); + return aRect; } static Rectangle NWGetTabItemRect( SalX11Screen nScreen, Rectangle aAreaRect ) @@ -2318,7 +2318,7 @@ static Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPa buttonRect.SetSize( Size( buttonWidth, buttonHeight ) ); - return( buttonRect ); + return buttonRect; } bool GtkSalGraphics::NWPaintGTKEditBox( GdkDrawable* gdkDrawable, @@ -2379,7 +2379,7 @@ static Rectangle NWGetEditBoxPixmapRect(SalX11Screen nScreen, pixmapRect.GetHeight() + (2*(focusWidth)) ) ); } - return( pixmapRect ); + return pixmapRect; } /* Paint a GTK Entry widget into the specified GdkPixmap. @@ -2493,7 +2493,7 @@ bool GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart, if ( !pSpinVal ) { std::fprintf( stderr, "Tried to draw CTRL_SPINBUTTONS, but the SpinButtons data structure didn't exist!\n" ); - return( false ); + return false; } pixmapRect = pSpinVal->maUpperRect; pixmapRect.Union( pSpinVal->maLowerRect ); @@ -2594,7 +2594,7 @@ static Rectangle NWGetSpinButtonRect( SalX11Screen nScreen, buttonRect.Bottom() = aAreaRect.Bottom(); } - return( buttonRect ); + return buttonRect; } static void NWPaintOneSpinButton( SalX11Screen nScreen, @@ -2769,7 +2769,7 @@ static Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen, aButtonRect.SetPos( aEditPos ); } - return( aButtonRect ); + return aButtonRect; } bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart, @@ -2801,7 +2801,7 @@ bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart, if ( (nType == CTRL_TAB_ITEM) && (aValue.getType() != CTRL_TAB_ITEM) ) { - return( false ); + return false; } NWEnsureGTKButton( m_nXScreen ); @@ -3726,7 +3726,7 @@ static Rectangle NWGetListBoxButtonRect( SalX11Screen nScreen, if ( pIndicatorSpacing ) gtk_border_free( pIndicatorSpacing ); - return( aPartRect ); + return aPartRect; } static Rectangle NWGetListBoxIndicatorRect( SalX11Screen nScreen, @@ -3776,7 +3776,7 @@ static Rectangle NWGetListBoxIndicatorRect( SalX11Screen nScreen, if ( pIndicatorSpacing ) gtk_border_free( pIndicatorSpacing ); - return( aIndicatorRect ); + return aIndicatorRect; } static Rectangle NWGetToolbarRect( SalX11Screen nScreen, diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index db08c0284951..ac708fc5e1b7 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -157,7 +157,7 @@ Rectangle GtkSalGraphics::NWGetSpinButtonRect( ControlPart nPart, Rectangle aAre gtk_style_context_restore(mpSpinStyle); - return( buttonRect ); + return buttonRect; } Rectangle GtkSalGraphics::NWGetScrollButtonRect( ControlPart nPart, Rectangle aAreaRect ) @@ -242,7 +242,7 @@ Rectangle GtkSalGraphics::NWGetScrollButtonRect( ControlPart nPart, Rectangle aA buttonRect.SetSize( Size( buttonWidth, buttonHeight ) ); - return( buttonRect ); + return buttonRect; } void GtkSalGraphics::PaintScrollbar(GtkStyleContext *context, @@ -688,7 +688,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType, aButtonRect.SetPos( aEditPos ); } - return( aButtonRect ); + return aButtonRect; } void GtkSalGraphics::PaintCombobox( GtkStyleContext *context, |