diff options
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/app/saldata.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/gtksalframe.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 8 | ||||
-rw-r--r-- | vcl/unx/gtk/salprn-gtk.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 4 |
7 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/generic/app/saldata.cxx b/vcl/unx/generic/app/saldata.cxx index 43b6bfbe9284..698955614daf 100644 --- a/vcl/unx/generic/app/saldata.cxx +++ b/vcl/unx/generic/app/saldata.cxx @@ -743,7 +743,7 @@ SalXLib::Yield( bool bWait, bool bHandleAllCurrentEvents ) CheckTimeout(); // handle wakeup events. - if ((nFound > 0) && (FD_ISSET(m_pTimeoutFDS[0], &ReadFDS))) + if ((nFound > 0) && FD_ISSET(m_pTimeoutFDS[0], &ReadFDS)) { int buffer; while (read (m_pTimeoutFDS[0], &buffer, sizeof(buffer)) > 0) diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index 0d3b58ee49cb..a4d08b8da1d0 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -3759,7 +3759,7 @@ void SelectionManager::shutdown() throw() sal_Bool SelectionManager::handleEvent(const Any& event) { Sequence< sal_Int8 > aSeq; - if( (event >>= aSeq) ) + if( event >>= aSeq ) { XEvent* pEvent = reinterpret_cast<XEvent*>(aSeq.getArray()); Time nTimestamp = CurrentTime; diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 46d642f98a64..180958e0321c 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -3966,7 +3966,7 @@ long X11SalFrame::Dispatch( XEvent *pEvent ) // don't set the focus into the IME status window // since this will lead to a parent loss of focus, close status, // reget focus, open status, .... flicker loop - if ( (vcl::I18NStatus::get().getStatusFrame() != this) ) + if ( vcl::I18NStatus::get().getStatusFrame() != this ) bSetFocus = true; } diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index e9430ea1fc8a..c23157d76785 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -1245,7 +1245,7 @@ void GtkSalFrame::Init( SalFrame* pParent, SalFrameStyleFlags nStyle ) if( bDecoHandling ) { gtk_window_set_resizable( GTK_WINDOW(m_pWindow), bool(nStyle & SalFrameStyleFlags::SIZEABLE) ); - if( ( (nStyle & (SalFrameStyleFlags::OWNERDRAWDECORATION)) ) ) + if( nStyle & (SalFrameStyleFlags::OWNERDRAWDECORATION) ) lcl_set_accept_focus( GTK_WINDOW(m_pWindow), false, false ); } } diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index ebe9112b480e..d2dbd5b9298a 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -974,7 +974,7 @@ bool GtkSalGraphics::DoDrawNativeControl( { return NWPaintGTKEditBox( pDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption ); } - else if ( ((nType==ControlType::MultilineEditbox) && ((nPart==ControlPart::Entire) || (nPart==ControlPart::HasBackgroundTexture)) ) ) + else if ( (nType==ControlType::MultilineEditbox) && ((nPart==ControlPart::Entire) || (nPart==ControlPart::HasBackgroundTexture)) ) { return NWPaintGTKEditBox( pDrawable, nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption ); } @@ -1201,8 +1201,8 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, child->style->font_desc, pango_context_get_language( context ) ); - arrow_size = ( PANGO_PIXELS( pango_font_metrics_get_ascent( metrics ) + - pango_font_metrics_get_descent( metrics ) )); + arrow_size = PANGO_PIXELS( pango_font_metrics_get_ascent( metrics ) + + pango_font_metrics_get_descent( metrics ) ); pango_font_metrics_unref( metrics ); @@ -1215,7 +1215,7 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, returnVal = true; } } - if( (nType == ControlType::Radiobutton || nType == ControlType::Checkbox) ) + if( nType == ControlType::Radiobutton || nType == ControlType::Checkbox ) { NWEnsureGTKRadio( m_nXScreen ); NWEnsureGTKCheck( m_nXScreen ); diff --git a/vcl/unx/gtk/salprn-gtk.cxx b/vcl/unx/gtk/salprn-gtk.cxx index bae9cba368bd..626b7ea10e01 100644 --- a/vcl/unx/gtk/salprn-gtk.cxx +++ b/vcl/unx/gtk/salprn-gtk.cxx @@ -356,7 +356,7 @@ lcl_extractHelpTextsOrIds( if (!(rEntry.Value >>= rHelpStrings)) { OUString aHelpString; - if ((rEntry.Value >>= aHelpString)) + if (rEntry.Value >>= aHelpString) { rHelpStrings.realloc(1); *rHelpStrings.getArray() = aHelpString; diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index 6f460826e0ee..1a8f45137862 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -2632,8 +2632,8 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar } else if( nType == ControlType::MenuPopup) { - if (((nPart == ControlPart::MenuItemCheckMark) || - (nPart == ControlPart::MenuItemRadioMark) )) + if ((nPart == ControlPart::MenuItemCheckMark) || + (nPart == ControlPart::MenuItemRadioMark) ) { indicator_size = 0; |