diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpbmp.cxx | 2 | ||||
-rw-r--r-- | vcl/osx/a11yfocustracker.cxx | 2 | ||||
-rw-r--r-- | vcl/qt5/Qt5Font.cxx | 4 | ||||
-rw-r--r-- | vcl/qt5/Qt5Graphics_Controls.cxx | 4 | ||||
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/edit.cxx | 4 | ||||
-rw-r--r-- | vcl/source/edit/textview.cxx | 16 | ||||
-rw-r--r-- | vcl/source/filter/graphicfilter2.cxx | 2 | ||||
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 2 | ||||
-rw-r--r-- | vcl/source/fontsubset/xlat.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/pngread.cxx | 4 | ||||
-rw-r--r-- | vcl/source/outdev/nativecontrols.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/decoview.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/winproc.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salbmp.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.cxx | 4 | ||||
-rw-r--r-- | vcl/win/window/salframe.cxx | 2 |
22 files changed, 35 insertions, 35 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx index 824fb847a732..093298ca1c4c 100644 --- a/vcl/headless/svpbmp.cxx +++ b/vcl/headless/svpbmp.cxx @@ -102,7 +102,7 @@ static std::unique_ptr<BitmapBuffer> ImplCreateDIB( break; default: nBitCount = 32; - SAL_FALLTHROUGH; + [[fallthrough]]; case 32: pDIB->mnFormat = SVP_CAIRO_FORMAT; break; diff --git a/vcl/osx/a11yfocustracker.cxx b/vcl/osx/a11yfocustracker.cxx index 49fa08ec4eee..a84b27d38d66 100644 --- a/vcl/osx/a11yfocustracker.cxx +++ b/vcl/osx/a11yfocustracker.cxx @@ -57,7 +57,7 @@ void AquaA11yFocusTracker::WindowEventHandler(void * pThis, VclSimpleEvent& rEve break; case VclEventId::ObjectDying: pFocusTracker->m_aDocumentWindowList.erase( getWindow(&rEvent) ); - SAL_FALLTHROUGH; + [[fallthrough]]; case VclEventId::ToolboxHighlightOff: pFocusTracker->toolbox_highlight_off( getWindow(&rEvent) ); break; diff --git a/vcl/qt5/Qt5Font.cxx b/vcl/qt5/Qt5Font.cxx index be00f7a9ec5f..ee9d339266b2 100644 --- a/vcl/qt5/Qt5Font.cxx +++ b/vcl/qt5/Qt5Font.cxx @@ -34,9 +34,9 @@ static QFont::Weight GetQFontWeight(FontWeight eWeight) case WEIGHT_LIGHT: return QFont::Light; case WEIGHT_SEMILIGHT: - SAL_FALLTHROUGH; + [[fallthrough]]; case WEIGHT_DONTKNOW: - SAL_FALLTHROUGH; + [[fallthrough]]; case WEIGHT_NORMAL: return QFont::Normal; case WEIGHT_MEDIUM: diff --git a/vcl/qt5/Qt5Graphics_Controls.cxx b/vcl/qt5/Qt5Graphics_Controls.cxx index d98cdafe0137..8763752c0615 100644 --- a/vcl/qt5/Qt5Graphics_Controls.cxx +++ b/vcl/qt5/Qt5Graphics_Controls.cxx @@ -194,7 +194,7 @@ bool Qt5Graphics_Controls::drawNativeControl(ControlType type, ControlPart part, m_image->fill(Qt::transparent); break; } - SAL_FALLTHROUGH; // QPalette::Window + [[fallthrough]]; // QPalette::Window case ControlType::Menubar: case ControlType::WindowBackground: m_image->fill(QApplication::palette().color(QPalette::Window).rgb()); @@ -209,7 +209,7 @@ bool Qt5Graphics_Controls::drawNativeControl(ControlType type, ControlPart part, m_image->fill(QApplication::palette().color(QPalette::Window).rgb()); break; } - SAL_FALLTHROUGH; // Qt::transparent + [[fallthrough]]; // Qt::transparent default: m_image->fill(Qt::transparent); break; diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 314756391664..d15fb1376784 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -182,7 +182,7 @@ static void MyCGPathApplierFunc( void* pData, const CGPathElement* pElement ) { break; } - SAL_FALLTHROUGH; + [[fallthrough]]; case kCGPathElementAddLineToPoint: rPolygon.append( basegfx::B2DPoint( +pElement->points[0].x, -pElement->points[0].y ) ); break; diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 6e2667258190..be35941fe775 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1534,7 +1534,7 @@ bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt ) case css::awt::Key::SELECT_TO_BEGIN_OF_PARAGRAPH: case css::awt::Key::SELECT_TO_BEGIN_OF_DOCUMENT: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_BEGIN_OF_LINE: case css::awt::Key::MOVE_TO_BEGIN_OF_PARAGRAPH: case css::awt::Key::MOVE_TO_BEGIN_OF_DOCUMENT: @@ -1543,7 +1543,7 @@ bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt ) case css::awt::Key::SELECT_TO_END_OF_PARAGRAPH: case css::awt::Key::SELECT_TO_END_OF_DOCUMENT: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_END_OF_LINE: case css::awt::Key::MOVE_TO_END_OF_PARAGRAPH: case css::awt::Key::MOVE_TO_END_OF_DOCUMENT: diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 6857089945eb..3ccae7706092 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -1167,49 +1167,49 @@ TextSelection const & TextView::ImpMoveCursor( const KeyEvent& rKeyEvent ) break; case css::awt::Key::SELECT_WORD_FORWARD: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_WORD_FORWARD: aPaM = CursorWordRight( aPaM ); break; case css::awt::Key::SELECT_WORD_BACKWARD: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_WORD_BACKWARD: aPaM = CursorWordLeft( aPaM ); break; case css::awt::Key::SELECT_TO_BEGIN_OF_LINE: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_BEGIN_OF_LINE: aPaM = CursorStartOfLine( aPaM ); break; case css::awt::Key::SELECT_TO_END_OF_LINE: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_END_OF_LINE: aPaM = CursorEndOfLine( aPaM ); break; case css::awt::Key::SELECT_TO_BEGIN_OF_PARAGRAPH: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_BEGIN_OF_PARAGRAPH: aPaM = CursorStartOfParagraph( aPaM ); break; case css::awt::Key::SELECT_TO_END_OF_PARAGRAPH: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_END_OF_PARAGRAPH: aPaM = CursorEndOfParagraph( aPaM ); break; case css::awt::Key::SELECT_TO_BEGIN_OF_DOCUMENT: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_BEGIN_OF_DOCUMENT: aPaM = CursorStartOfDoc(); break; case css::awt::Key::SELECT_TO_END_OF_DOCUMENT: bSelect = true; - SAL_FALLTHROUGH; + [[fallthrough]]; case css::awt::Key::MOVE_TO_END_OF_DOCUMENT: aPaM = CursorEndOfDoc(); break; diff --git a/vcl/source/filter/graphicfilter2.cxx b/vcl/source/filter/graphicfilter2.cxx index b79d4afa425c..27dd780b57c8 100644 --- a/vcl/source/filter/graphicfilter2.cxx +++ b/vcl/source/filter/graphicfilter2.cxx @@ -873,7 +873,7 @@ bool GraphicDescriptor::ImpDetectPSD( SvStream& rStm, bool bExtendedInfo ) case 4 : case 3 : nBitsPerPixel = 24; - SAL_FALLTHROUGH; + [[fallthrough]]; case 2 : case 1 : aPixSize.setWidth( nColumns ); diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index fb4bb52ee719..ef230704cd66 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -903,7 +903,7 @@ void CffSubsetterContext::convertOneTypeEsc() assert( mnStackIdx >= 1 ); if( pTop[0] >= 0) break; - SAL_FALLTHROUGH; + [[fallthrough]]; case TYPE2OP::NEG: assert( mnStackIdx >= 1 ); pTop[0] = -pTop[0]; diff --git a/vcl/source/fontsubset/xlat.cxx b/vcl/source/fontsubset/xlat.cxx index 042d8e79517d..239b1bf0b454 100644 --- a/vcl/source/fontsubset/xlat.cxx +++ b/vcl/source/fontsubset/xlat.cxx @@ -66,7 +66,7 @@ void ConverterCache::ensureConverter( int nSelect ) rtl_TextEncoding eRecodeFrom = RTL_TEXTENCODING_UNICODE; switch( nSelect ) { - default: nSelect = 1; SAL_FALLTHROUGH; // to unicode recoding + default: nSelect = 1; [[fallthrough]]; // to unicode recoding case 1: eRecodeFrom = RTL_TEXTENCODING_UNICODE; break; case 2: eRecodeFrom = RTL_TEXTENCODING_SHIFT_JIS; break; case 3: eRecodeFrom = RTL_TEXTENCODING_GB_2312; break; diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index b6ffa8fd9908..2c44af9ccc71 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -1378,7 +1378,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess const & rAcc, BitmapRead size_t nUnusedBytes = nAlignedWidth - nWidth * 3; memset(aBuf.data() + nAlignedWidth - nUnusedBytes, 0, nUnusedBytes); } - SAL_FALLTHROUGH; + [[fallthrough]]; // #i59239# fallback to 24 bit format, if bitcount is non-default default: { diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 3ebe2ce38673..af08ca7a3e6c 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -4617,7 +4617,7 @@ bool PDFWriterImpl::emitWidgetAnnotations() else appendName( rWidget.m_aValue, aValue ); } - SAL_FALLTHROUGH; + [[fallthrough]]; case PDFWriter::PushButton: aLine.append( "Btn" ); break; @@ -8681,7 +8681,7 @@ bool PDFWriterImpl::writeGradientFunction( GradientEmit const & rObject ) aCol[1] = rObject.m_aGradient.GetEndColor().GetGreen(); aCol[2] = rObject.m_aGradient.GetEndColor().GetBlue(); CHECK_RETURN( writeBuffer( aCol, 3 ) ); - SAL_FALLTHROUGH; + [[fallthrough]]; case GradientStyle::Linear: { aCol[0] = rObject.m_aGradient.GetStartColor().GetRed(); diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx index cfd9391f69b5..ba9d9afc5507 100644 --- a/vcl/source/gdi/pngread.cxx +++ b/vcl/source/gdi/pngread.cxx @@ -501,7 +501,7 @@ bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint ) break; case 16 : mnTargetDepth = 8; // we have to reduce the bitmap - SAL_FALLTHROUGH; + [[fallthrough]]; case 1 : case 4 : case 8 : @@ -556,7 +556,7 @@ bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint ) { case 16 : mnTargetDepth = 8; // we have to reduce the bitmap - SAL_FALLTHROUGH; + [[fallthrough]]; case 8 : mbGrayScale = true; break; diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx index c848ec2d0b53..ef2295808a6d 100644 --- a/vcl/source/outdev/nativecontrols.cxx +++ b/vcl/source/outdev/nativecontrols.cxx @@ -52,7 +52,7 @@ static bool EnableNativeWidget( const OutputDevice& i_rDevice ) } case OUTDEV_PDF: - SAL_FALLTHROUGH; + [[fallthrough]]; case OUTDEV_VIRDEV: { const vcl::ExtOutDevData* pOutDevData( i_rDevice.GetExtOutDevData() ); diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index c8cfb1d70f3f..c1fb51df019e 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -293,7 +293,7 @@ void ImplDrawSymbol( OutputDevice* pDev, tools::Rectangle nRect, const SymbolTyp Point( nRect.Right(), nRect.Bottom() ) ); pDev->DrawLine( Point( nRect.Left(), nRect.Bottom() ), Point( nRect.Right(), nRect.Bottom() ) ); - SAL_FALLTHROUGH; + [[fallthrough]]; case SymbolType::ROLLUP: pDev->DrawRect( tools::Rectangle( nRect.Left(), nRect.Top(), nRect.Right(), nRect.Top()+n8 ) ); diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 91de02405af6..bace88d1d59c 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -780,7 +780,7 @@ void VclButtonBox::setAllocation(const Size &rAllocation) break; default: SAL_WARN("vcl.layout", "todo unimplemented layout style"); - SAL_FALLTHROUGH; + [[fallthrough]]; case VclButtonBoxStyle::Default: case VclButtonBoxStyle::End: if (!aReq.m_aMainGroupDimensions.empty()) diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index a4cce43051c7..f58ea591b922 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -2518,7 +2518,7 @@ bool ImplWindowFrameProc( vcl::Window* _pWindow, SalEvent nEvent, const void* pE ImplHandleSurroundingTextSelectionChange( pWindow, pEvt->mnStart, pEvt->mnEnd ); - SAL_FALLTHROUGH; // TODO: Fallthrough really intended? + [[fallthrough]]; // TODO: Fallthrough really intended? } case SalEvent::StartReconversion: ImplHandleStartReconversion( pWindow ); diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index 8dfd446c4cd6..b7cea507df7e 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -180,7 +180,7 @@ std::unique_ptr<BitmapBuffer> X11SalBitmap::ImplCreateDIB( #endif default: nBitCount = 24; - SAL_FALLTHROUGH; + [[fallthrough]]; case 24: pDIB->mnFormat |= ScanlineFormat::N24BitTcBgr; break; diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index face14778fd0..0d4c309adc8b 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -3911,7 +3911,7 @@ bool X11SalFrame::Dispatch( XEvent *pEvent ) XSetInputFocus( GetXDisplay(), GetShellWindow(), RevertToNone, CurrentTime ); } - SAL_FALLTHROUGH; + [[fallthrough]]; case ButtonRelease: case MotionNotify: case EnterNotify: diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index ed99ba392bba..cf623025df68 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -670,7 +670,7 @@ static void WindowEventHandler(void *, VclSimpleEvent& rEvent) case VclEventId::ObjectDying: g_aWindowList.list.erase( static_cast< ::VclWindowEvent const * >(&rEvent)->GetWindow() ); - SAL_FALLTHROUGH; + [[fallthrough]]; case VclEventId::ToolboxHighlightOff: handle_toolbox_highlightoff(static_cast< ::VclWindowEvent const * >(&rEvent)->GetWindow()); break; diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index 7cbcfeab3ed6..b36e8abd4762 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -234,7 +234,7 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, m_image->fill( Qt::transparent ); break; } - SAL_FALLTHROUGH; // QPalette::Window + [[fallthrough]]; // QPalette::Window case ControlType::Menubar: case ControlType::WindowBackground: m_image->fill( KApplication::palette().color(QPalette::Window).rgb() ); @@ -252,7 +252,7 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, m_image->fill( KApplication::palette().color(QPalette::Window).rgb() ); break; } - SAL_FALLTHROUGH; // Qt::transparent + [[fallthrough]]; // Qt::transparent default: m_image->fill( Qt::transparent ); break; diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 99f86049c71e..c28ac2f66601 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -5656,7 +5656,7 @@ static LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LP case WM_KILLFOCUS: DestroyCaret(); - SAL_FALLTHROUGH; + [[fallthrough]]; case WM_SETFOCUS: case SAL_MSG_POSTFOCUS: ImplHandleFocusMsg( hWnd ); |