commit 1249e5e13e8e0165eeef72917ffd4cdb472d027b
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Aug 12 09:06:29 2017 +0200
Mark some intentional fall-throughs (in a way understandable to gcc)
This silences -Wimplicit-fallthrough warnings with gcc7.
(Re-Apply without the unintended commits)
---
src/LyXRC.cpp | 169 ++++++++++++++++++++++++++++------
src/Paragraph.cpp | 4 +-
src/frontends/qt4/GuiApplication.cpp | 3 +-
src/frontends/qt4/GuiView.cpp | 3 +-
src/insets/InsetCaption.cpp | 2 +
src/insets/InsetFloat.cpp | 2 +
src/insets/InsetLabel.cpp | 2 +
src/insets/InsetListings.cpp | 1 +
src/insets/InsetTabular.cpp | 15 +++-
src/output_latex.cpp | 4 +-
10 files changed, 169 insertions(+), 36 deletions(-)
diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp
index 3a8328b..315495f 100644
--- a/src/LyXRC.cpp
+++ b/src/LyXRC.cpp
@@ -1324,7 +1324,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_DEFFILE:
if (ignore_system_lyxrc ||
def_file != system_lyxrc.def_file) {
@@ -1341,7 +1341,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# MISC SECTION ######################################\n"
<< "#\n\n";
// bind files are not done here.
-
+ // fall through
case RC_PATH_PREFIX:
if (ignore_system_lyxrc ||
path_prefix != system_lyxrc.path_prefix) {
@@ -1349,6 +1349,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_UIFILE:
if (ignore_system_lyxrc ||
ui_file != system_lyxrc.ui_file) {
@@ -1357,6 +1358,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_AUTOREGIONDELETE:
if (ignore_system_lyxrc ||
auto_region_delete != system_lyxrc.auto_region_delete) {
@@ -1367,6 +1369,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_AUTORESET_OPTIONS:
if (ignore_system_lyxrc ||
auto_reset_options != system_lyxrc.auto_reset_options) {
@@ -1378,6 +1381,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_AUTOSAVE:
if (ignore_system_lyxrc ||
autosave != system_lyxrc.autosave) {
@@ -1386,6 +1390,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_DISPLAY_GRAPHICS:
if (ignore_system_lyxrc ||
display_graphics != system_lyxrc.display_graphics) {
@@ -1397,6 +1402,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SORT_LAYOUTS:
if (ignore_system_lyxrc ||
sort_layouts != system_lyxrc.sort_layouts) {
@@ -1405,6 +1411,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_GROUP_LAYOUTS:
if (ignore_system_lyxrc ||
group_layouts != system_lyxrc.group_layouts) {
@@ -1413,6 +1420,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_VIEWDVI_PAPEROPTION:
if (ignore_system_lyxrc ||
view_dvi_paper_option
@@ -1424,6 +1432,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_CHKTEX_COMMAND:
if (ignore_system_lyxrc ||
chktex_command != system_lyxrc.chktex_command) {
@@ -1431,6 +1440,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_BIBTEX_ALTERNATIVES: {
CommandSet::const_iterator it = bibtex_alternatives.begin();
CommandSet::const_iterator end = bibtex_alternatives.end();
@@ -1443,6 +1453,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
if (tag != RC_LAST)
break;
}
+ // fall through
case RC_BIBTEX_COMMAND:
if (ignore_system_lyxrc ||
bibtex_command != system_lyxrc.bibtex_command) {
@@ -1450,6 +1461,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_JBIBTEX_COMMAND:
if (ignore_system_lyxrc ||
jbibtex_command != system_lyxrc.jbibtex_command) {
@@ -1457,6 +1469,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_JBIBTEX_ALTERNATIVES: {
CommandSet::const_iterator it = jbibtex_alternatives.begin();
CommandSet::const_iterator end = jbibtex_alternatives.end();
@@ -1469,6 +1482,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
if (tag != RC_LAST)
break;
}
+ // fall through
case RC_INDEX_ALTERNATIVES: {
CommandSet::const_iterator it = index_alternatives.begin();
CommandSet::const_iterator end = index_alternatives.end();
@@ -1481,6 +1495,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
if (tag != RC_LAST)
break;
}
+ // fall through
case RC_INDEX_COMMAND:
if (ignore_system_lyxrc ||
index_command != system_lyxrc.index_command) {
@@ -1488,6 +1503,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_JINDEX_COMMAND:
if (ignore_system_lyxrc ||
jindex_command != system_lyxrc.jindex_command) {
@@ -1495,6 +1511,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SPLITINDEX_COMMAND:
if (ignore_system_lyxrc ||
splitindex_command != system_lyxrc.splitindex_command) {
@@ -1502,6 +1519,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_NOMENCL_COMMAND:
if (ignore_system_lyxrc ||
nomencl_command != system_lyxrc.nomencl_command) {
@@ -1509,6 +1527,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_PYGMENTIZE_COMMAND:
if (ignore_system_lyxrc ||
pygmentize_command != system_lyxrc.pygmentize_command) {
@@ -1516,6 +1535,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_TEX_EXPECTS_WINDOWS_PATHS:
// Don't write this setting to the preferences file,
// but allow temporary changes (bug 7557).
@@ -1525,6 +1545,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_TEX_ALLOWS_SPACES:
if (tex_allows_spaces != system_lyxrc.tex_allows_spaces) {
os << "\\tex_allows_spaces "
@@ -1532,6 +1553,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_KBMAP:
if (ignore_system_lyxrc ||
use_kbmap != system_lyxrc.use_kbmap) {
@@ -1539,6 +1561,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_KBMAP_PRIMARY:
if (ignore_system_lyxrc ||
primary_kbmap != system_lyxrc.primary_kbmap) {
@@ -1547,6 +1570,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_KBMAP_SECONDARY:
if (ignore_system_lyxrc ||
secondary_kbmap != system_lyxrc.secondary_kbmap) {
@@ -1555,6 +1579,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SERVERPIPE:
if (ignore_system_lyxrc ||
lyxpipes != system_lyxrc.lyxpipes) {
@@ -1563,6 +1588,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_DATE_INSERT_FORMAT:
if (ignore_system_lyxrc ||
date_insert_format != system_lyxrc.date_insert_format) {
@@ -1571,17 +1597,17 @@ void LyXRC::write(ostream & os, bool
ignore_system_lyxrc, string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USER_NAME:
os << "\\user_name \"" << user_name << "\"\n";
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USER_EMAIL:
os << "\\user_email \"" << user_email << "\"\n";
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SHOW_BANNER:
if (ignore_system_lyxrc ||
show_banner != system_lyxrc.show_banner) {
@@ -1589,7 +1615,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_PREVIEW:
if (ignore_system_lyxrc ||
preview != system_lyxrc.preview) {
@@ -1609,7 +1635,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_PREVIEW_HASHED_LABELS:
if (ignore_system_lyxrc ||
preview_hashed_labels !=
@@ -1619,7 +1645,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_PREVIEW_SCALE_FACTOR:
if (ignore_system_lyxrc ||
preview_scale_factor != system_lyxrc.preview_scale_factor) {
@@ -1628,7 +1654,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USE_CONVERTER_CACHE:
if (ignore_system_lyxrc ||
use_converter_cache != system_lyxrc.use_converter_cache) {
@@ -1637,7 +1663,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USE_CONVERTER_NEEDAUTH_FORBIDDEN:
if (ignore_system_lyxrc ||
use_converter_needauth_forbidden !=
system_lyxrc.use_converter_needauth_forbidden) {
@@ -1646,7 +1672,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USE_CONVERTER_NEEDAUTH:
if (ignore_system_lyxrc ||
use_converter_needauth !=
system_lyxrc.use_converter_needauth) {
@@ -1655,7 +1681,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_CONVERTER_CACHE_MAXAGE:
if (ignore_system_lyxrc ||
converter_cache_maxage !=
system_lyxrc.converter_cache_maxage) {
@@ -1668,7 +1694,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
os << "\n#\n"
<< "# SCREEN & FONTS SECTION ############################\n"
<< "#\n\n";
-
+ // fall through
case RC_ICON_SET:
if (ignore_system_lyxrc ||
icon_set != system_lyxrc.icon_set) {
@@ -1677,7 +1703,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_USE_SYSTEM_THEME_ICONS:
if (ignore_system_lyxrc ||
use_system_theme_icons !=
system_lyxrc.use_system_theme_icons) {
@@ -1687,7 +1713,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SCREEN_DPI:
if (ignore_system_lyxrc ||
dpi != system_lyxrc.dpi) {
@@ -1695,6 +1721,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_ZOOM:
if (ignore_system_lyxrc ||
zoom != system_lyxrc.zoom) {
@@ -1702,6 +1729,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_GEOMETRY_SESSION:
if (ignore_system_lyxrc ||
allow_geometry_session !=
system_lyxrc.allow_geometry_session) {
@@ -1710,6 +1738,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_CURSOR_FOLLOWS_SCROLLBAR:
if (ignore_system_lyxrc ||
cursor_follows_scrollbar
@@ -1719,6 +1748,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_CURSOR_WIDTH:
if (ignore_system_lyxrc ||
cursor_width
@@ -1728,6 +1758,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCROLL_BELOW_DOCUMENT:
if (ignore_system_lyxrc ||
scroll_below_document
@@ -1737,6 +1768,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_PARAGRAPH_MARKERS:
if (ignore_system_lyxrc ||
paragraph_markers
@@ -1746,6 +1778,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MAC_DONTSWAP_CTRL_META:
if (ignore_system_lyxrc ||
mac_dontswap_ctrl_meta
@@ -1755,6 +1788,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MAC_LIKE_CURSOR_MOVEMENT:
if (ignore_system_lyxrc ||
mac_like_cursor_movement
@@ -1764,6 +1798,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MACRO_EDIT_STYLE:
if (ignore_system_lyxrc ||
macro_edit_style
@@ -1777,6 +1812,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_DIALOGS_ICONIFY_WITH_MAIN:
if (ignore_system_lyxrc ||
dialogs_iconify_with_main
@@ -1786,6 +1822,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_ROMAN:
if (ignore_system_lyxrc ||
roman_font_name != system_lyxrc.roman_font_name) {
@@ -1794,6 +1831,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_ROMAN_FOUNDRY:
if (ignore_system_lyxrc ||
roman_font_foundry != system_lyxrc.roman_font_foundry) {
@@ -1802,6 +1840,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_SANS:
if (ignore_system_lyxrc ||
sans_font_name != system_lyxrc.sans_font_name) {
@@ -1810,6 +1849,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_SANS_FOUNDRY:
if (ignore_system_lyxrc ||
sans_font_foundry != system_lyxrc.sans_font_foundry) {
@@ -1818,6 +1858,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_TYPEWRITER:
if (ignore_system_lyxrc ||
typewriter_font_name != system_lyxrc.typewriter_font_name) {
@@ -1826,6 +1867,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_TYPEWRITER_FOUNDRY:
if (ignore_system_lyxrc ||
typewriter_font_foundry !=
system_lyxrc.typewriter_font_foundry) {
@@ -1834,7 +1876,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SCREEN_FONT_SCALABLE:
if (ignore_system_lyxrc ||
use_scalable_fonts != system_lyxrc.use_scalable_fonts) {
@@ -1844,6 +1886,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SCREEN_FONT_SIZES:
if (ignore_system_lyxrc ||
font_sizes[FONT_SIZE_TINY]
@@ -1886,6 +1929,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_LIMIT:
if (ignore_system_lyxrc ||
full_screen_limit != system_lyxrc.full_screen_limit) {
@@ -1895,6 +1939,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_TOOLBARS:
if (ignore_system_lyxrc ||
full_screen_toolbars != system_lyxrc.full_screen_toolbars) {
@@ -1904,6 +1949,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_SCROLLBAR:
if (ignore_system_lyxrc ||
full_screen_scrollbar !=
system_lyxrc.full_screen_scrollbar) {
@@ -1913,6 +1959,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_STATUSBAR:
if (ignore_system_lyxrc ||
full_screen_statusbar !=
system_lyxrc.full_screen_statusbar) {
@@ -1922,6 +1969,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_TABBAR:
if (ignore_system_lyxrc ||
full_screen_tabbar != system_lyxrc.full_screen_tabbar) {
@@ -1931,6 +1979,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_MENUBAR:
if (ignore_system_lyxrc ||
full_screen_menubar != system_lyxrc.full_screen_menubar) {
@@ -1940,6 +1989,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FULL_SCREEN_WIDTH:
if (ignore_system_lyxrc ||
full_screen_width != system_lyxrc.full_screen_width) {
@@ -1949,6 +1999,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_OPEN_BUFFERS_IN_TABS:
if (ignore_system_lyxrc ||
open_buffers_in_tabs != system_lyxrc.open_buffers_in_tabs) {
@@ -1958,6 +2009,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SINGLE_CLOSE_TAB_BUTTON:
if (ignore_system_lyxrc ||
single_close_tab_button !=
system_lyxrc.single_close_tab_button) {
@@ -1967,6 +2019,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SINGLE_INSTANCE:
if (ignore_system_lyxrc ||
single_instance != system_lyxrc.single_instance) {
@@ -1976,6 +2029,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FORWARD_SEARCH_DVI:
if (ignore_system_lyxrc ||
forward_search_dvi != system_lyxrc.forward_search_dvi) {
@@ -1983,6 +2037,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_FORWARD_SEARCH_PDF:
if (ignore_system_lyxrc ||
forward_search_pdf != system_lyxrc.forward_search_pdf) {
@@ -1995,6 +2050,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# COLOR SECTION
###################################\n"
<< "#\n\n";
+ // fall through
case RC_SET_COLOR:
for (int i = 0; i < Color_ignore; ++i) {
ColorCode lc = static_cast<ColorCode>(i);
@@ -2013,6 +2069,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# PRINTER SECTION ###################################\n"
<< "#\n\n";
+ // fall through
case RC_PRINTLANDSCAPEFLAG:
if (ignore_system_lyxrc ||
print_landscape_flag != system_lyxrc.print_landscape_flag) {
@@ -2021,7 +2078,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_PRINTPAPERFLAG:
if (ignore_system_lyxrc ||
print_paper_flag != system_lyxrc.print_paper_flag) {
@@ -2030,7 +2087,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_PRINTPAPERDIMENSIONFLAG:
if (ignore_system_lyxrc ||
print_paper_dimension_flag
@@ -2045,6 +2102,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# TEX SECTION #######################################\n"
<< "#\n\n";
+ // fall through
case RC_TEXINPUTS_PREFIX:
if (ignore_system_lyxrc ||
texinputs_prefix != system_lyxrc.texinputs_prefix) {
@@ -2052,7 +2110,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_FONT_ENCODING:
if (ignore_system_lyxrc ||
fontenc != system_lyxrc.fontenc) {
@@ -2065,6 +2123,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# FILE SECTION ######################################\n"
<< "#\n\n";
+ // fall through
case RC_DOCUMENTPATH:
if (ignore_system_lyxrc ||
document_path != system_lyxrc.document_path) {
@@ -2073,6 +2132,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_USELASTFILEPOS:
if (ignore_system_lyxrc ||
use_lastfilepos != system_lyxrc.use_lastfilepos) {
@@ -2081,6 +2141,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LOADSESSION:
if (ignore_system_lyxrc ||
load_session != system_lyxrc.load_session) {
@@ -2089,6 +2150,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MOUSE_WHEEL_SPEED:
if (ignore_system_lyxrc ||
mouse_wheel_speed != system_lyxrc.mouse_wheel_speed) {
@@ -2096,6 +2158,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MOUSE_MIDDLEBUTTON_PASTE:
if (ignore_system_lyxrc ||
mouse_middlebutton_paste !=
system_lyxrc.mouse_middlebutton_paste) {
@@ -2104,6 +2167,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_INLINE_DELAY:
if (ignore_system_lyxrc ||
completion_inline_delay !=
system_lyxrc.completion_inline_delay) {
@@ -2111,6 +2175,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_INLINE_MATH:
if (ignore_system_lyxrc ||
completion_inline_math !=
system_lyxrc.completion_inline_math) {
@@ -2119,6 +2184,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_INLINE_TEXT:
if (ignore_system_lyxrc ||
completion_inline_text !=
system_lyxrc.completion_inline_text) {
@@ -2127,6 +2193,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_INLINE_DOTS:
if (ignore_system_lyxrc ||
completion_inline_dots !=
system_lyxrc.completion_inline_dots) {
@@ -2135,6 +2202,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_AUTOCORRECTION_MATH:
if (ignore_system_lyxrc ||
autocorrection_math != system_lyxrc.autocorrection_math) {
@@ -2143,6 +2211,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_POPUP_DELAY:
if (ignore_system_lyxrc ||
completion_popup_delay !=
system_lyxrc.completion_popup_delay) {
@@ -2150,6 +2219,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_POPUP_MATH:
if (ignore_system_lyxrc ||
completion_popup_math !=
system_lyxrc.completion_popup_math) {
@@ -2158,6 +2228,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_POPUP_TEXT:
if (ignore_system_lyxrc ||
completion_popup_text !=
system_lyxrc.completion_popup_text) {
@@ -2166,6 +2237,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_CURSOR_TEXT:
if (ignore_system_lyxrc ||
completion_cursor_text !=
system_lyxrc.completion_cursor_text) {
@@ -2174,6 +2246,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_POPUP_AFTER_COMPLETE:
if (ignore_system_lyxrc ||
completion_popup_after_complete
@@ -2183,6 +2256,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_COMPLETION_MINLENGTH:
if (ignore_system_lyxrc ||
completion_minlength !=
system_lyxrc.completion_minlength) {
@@ -2191,14 +2265,15 @@ void LyXRC::write(ostream & os, bool
ignore_system_lyxrc, string const & name) c
}
if (tag != RC_LAST)
break;
-
- case RC_NUMLASTFILES:
+ // fall through
+ case RC_NUMLASTFILES:
if (ignore_system_lyxrc ||
num_lastfiles != system_lyxrc.num_lastfiles) {
os << "\\num_lastfiles " << num_lastfiles << '\n';
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_CHECKLASTFILES:
if (ignore_system_lyxrc ||
check_lastfiles != system_lyxrc.check_lastfiles) {
@@ -2207,6 +2282,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_EXAMPLEPATH:
if (ignore_system_lyxrc ||
example_path != system_lyxrc.example_path) {
@@ -2215,6 +2291,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_TEMPLATEPATH:
if (ignore_system_lyxrc ||
template_path != system_lyxrc.template_path) {
@@ -2223,6 +2300,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_TEMPDIRPATH:
if (ignore_system_lyxrc ||
tempdir_path != system_lyxrc.tempdir_path) {
@@ -2231,6 +2309,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_THESAURUSDIRPATH:
if (ignore_system_lyxrc ||
thesaurusdir_path != system_lyxrc.thesaurusdir_path) {
@@ -2239,6 +2318,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_HUNSPELLDIR_PATH:
if (ignore_system_lyxrc ||
hunspelldir_path != system_lyxrc.hunspelldir_path) {
@@ -2247,6 +2327,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_PLAINTEXT_LINELEN:
if (ignore_system_lyxrc ||
plaintext_linelen != system_lyxrc.plaintext_linelen) {
@@ -2254,6 +2335,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MAKE_BACKUP:
if (ignore_system_lyxrc ||
make_backup != system_lyxrc.make_backup) {
@@ -2261,6 +2343,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SAVE_COMPRESSED:
if (ignore_system_lyxrc ||
save_compressed != system_lyxrc.save_compressed) {
@@ -2268,6 +2351,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_SAVE_ORIGIN:
if (ignore_system_lyxrc ||
save_origin != system_lyxrc.save_origin) {
@@ -2275,6 +2359,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_BACKUPDIR_PATH:
if (ignore_system_lyxrc ||
backupdir_path != system_lyxrc.backupdir_path) {
@@ -2292,6 +2377,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# SPELLCHECKER SECTION ##############################\n"
<< "#\n\n";
+ // fall through
case RC_ACCEPT_COMPOUND:
if (ignore_system_lyxrc ||
spellchecker_accept_compound !=
system_lyxrc.spellchecker_accept_compound) {
@@ -2300,6 +2386,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_ALT_LANG:
if (ignore_system_lyxrc ||
spellchecker_alt_lang !=
system_lyxrc.spellchecker_alt_lang) {
@@ -2308,6 +2395,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_ESC_CHARS:
if (ignore_system_lyxrc ||
spellchecker_esc_chars !=
system_lyxrc.spellchecker_esc_chars) {
@@ -2315,6 +2403,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_USE_SYSTEM_COLORS:
if (ignore_system_lyxrc ||
use_system_colors != system_lyxrc.use_system_colors) {
@@ -2324,6 +2413,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_USE_TOOLTIP:
if (ignore_system_lyxrc ||
use_tooltip != system_lyxrc.use_tooltip) {
@@ -2333,6 +2423,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_USE_PIXMAP_CACHE:
if (ignore_system_lyxrc ||
use_pixmap_cache != system_lyxrc.use_pixmap_cache) {
@@ -2342,6 +2433,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_USE_QIMAGE:
if (ignore_system_lyxrc ||
use_qimage != system_lyxrc.use_qimage) {
@@ -2356,6 +2448,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# LANGUAGE SUPPORT SECTION ##########################\n"
<< "#\n\n";
+ // fall through
case RC_DEFAULT_DECIMAL_POINT:
if (ignore_system_lyxrc ||
default_decimal_point !=
system_lyxrc.default_decimal_point) {
@@ -2363,7 +2456,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_DEFAULT_LENGTH_UNIT:
if (ignore_system_lyxrc ||
default_length_unit != system_lyxrc.default_length_unit) {
@@ -2371,7 +2464,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SPELLCHECKER:
if (ignore_system_lyxrc ||
spellchecker != system_lyxrc.spellchecker) {
@@ -2379,7 +2472,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SPELLCHECK_CONTINUOUSLY:
if (ignore_system_lyxrc ||
spellcheck_continuously !=
system_lyxrc.spellcheck_continuously) {
@@ -2388,7 +2481,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SPELLCHECK_NOTES:
if (ignore_system_lyxrc ||
spellcheck_notes != system_lyxrc.spellcheck_notes) {
@@ -2397,7 +2490,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_VISUAL_CURSOR:
if (ignore_system_lyxrc ||
visual_cursor != system_lyxrc.visual_cursor) {
@@ -2405,6 +2498,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_CLOSE_BUFFER_WITH_LAST_VIEW:
if (ignore_system_lyxrc ||
close_buffer_with_last_view !=
system_lyxrc.close_buffer_with_last_view) {
@@ -2413,6 +2507,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_CUSTOM_PACKAGE:
if (ignore_system_lyxrc ||
language_custom_package !=
system_lyxrc.language_custom_package) {
@@ -2421,6 +2516,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_GLOBAL_OPTIONS:
if (ignore_system_lyxrc ||
language_global_options
@@ -2431,6 +2527,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_PACKAGE_SELECTION:
if (ignore_system_lyxrc ||
language_package_selection !=
system_lyxrc.language_package_selection) {
@@ -2452,6 +2549,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_COMMAND_BEGIN:
if (ignore_system_lyxrc ||
language_command_begin
@@ -2462,6 +2560,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_COMMAND_END:
if (ignore_system_lyxrc ||
language_command_end
@@ -2471,6 +2570,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_COMMAND_LOCAL:
if (ignore_system_lyxrc ||
language_command_local
@@ -2481,6 +2581,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_AUTO_BEGIN:
if (ignore_system_lyxrc ||
language_auto_begin != system_lyxrc.language_auto_begin) {
@@ -2489,6 +2590,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_LANGUAGE_AUTO_END:
if (ignore_system_lyxrc ||
language_auto_end != system_lyxrc.language_auto_end) {
@@ -2497,6 +2599,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_MARK_FOREIGN_LANGUAGE:
if (ignore_system_lyxrc ||
mark_foreign_language
@@ -2511,6 +2614,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# 2nd MISC SUPPORT SECTION ##########################\n"
<< "#\n\n";
+ // fall through
case RC_AUTO_NUMBER:
if (ignore_system_lyxrc ||
auto_number != system_lyxrc.auto_number) {
@@ -2518,6 +2622,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_GUI_LANGUAGE:
if (ignore_system_lyxrc ||
gui_language != system_lyxrc.gui_language) {
@@ -2525,6 +2630,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_EXPORT_OVERWRITE:
if (ignore_system_lyxrc ||
export_overwrite != system_lyxrc.export_overwrite) {
@@ -2544,7 +2650,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_SCROLL_WHEEL_ZOOM:
if (ignore_system_lyxrc ||
scroll_wheel_zoom != system_lyxrc.scroll_wheel_zoom) {
@@ -2572,6 +2678,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# FORMATS SECTION ##########################\n"
<< "#\n\n";
+ // fall through
case RC_FILEFORMAT:
// New/modified formats
for (Formats::const_iterator cit = theFormats().begin();
@@ -2617,6 +2724,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"\n";
if (tag != RC_LAST)
break;
+ // fall through
case RC_VIEWER_ALTERNATIVES: {
Alternatives::const_iterator it = viewer_alternatives.begin();
Alternatives::const_iterator const en =
viewer_alternatives.end();
@@ -2642,6 +2750,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
if (tag != RC_LAST)
break;
}
+ // fall through
case RC_EDITOR_ALTERNATIVES: {
Alternatives::const_iterator it = editor_alternatives.begin();
Alternatives::const_iterator const en =
editor_alternatives.end();
@@ -2667,6 +2776,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
if (tag != RC_LAST)
break;
}
+ // fall through
case RC_DEFAULT_OTF_VIEW_FORMAT:
if ((ignore_system_lyxrc ||
default_otf_view_format !=
system_lyxrc.default_otf_view_format)
@@ -2675,6 +2785,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_DEFAULT_VIEW_FORMAT:
if (ignore_system_lyxrc ||
default_view_format != system_lyxrc.default_view_format) {
@@ -2682,6 +2793,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
}
if (tag != RC_LAST)
break;
+ // fall through
case RC_VIEWER:
// Ignore it
if (tag != RC_LAST)
@@ -2691,6 +2803,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "# CONVERTERS SECTION ##########################\n"
<< "#\n\n";
+ // fall through
case RC_CONVERTER:
// Look for new converters
for (Converters::const_iterator cit = theConverters().begin();
@@ -2715,7 +2828,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc,
string const & name) c
<< "\" \"" << cit->to() << "\" \"\" \"\"\n";
if (tag != RC_LAST)
break;
-
+ // fall through
case RC_COPIER:
if (tag == RC_LAST)
os << "\n#\n"
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index f9684ff..c9a234d 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -3871,13 +3871,13 @@ void Paragraph::locateWord(pos_type & from, pos_type &
to,
to = from;
return;
}
- // no break here, we go to the next
+ // fall through
case WHOLE_WORD:
// If we are already at the beginning of a word, do nothing
if (!from || isWordSeparator(from - 1))
break;
- // no break here, we go to the next
+ // fall through
case PREVIOUS_WORD:
// always move the cursor to the beginning of previous word
diff --git a/src/frontends/qt4/GuiApplication.cpp
b/src/frontends/qt4/GuiApplication.cpp
index 9a5fc93..1e84746 100644
--- a/src/frontends/qt4/GuiApplication.cpp
+++ b/src/frontends/qt4/GuiApplication.cpp
@@ -2070,9 +2070,8 @@ void GuiApplication::dispatch(FuncRequest const & cmd,
DispatchResult & dr)
if (current_view_ == 0)
createView();
}
- // fall through
}
-
+ // fall through
default:
// The LFUN must be for one of GuiView, BufferView, Buffer or
Cursor;
// let's try that:
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 0e461a0..1c2c09c 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -1989,7 +1989,8 @@ bool GuiView::getStatus(FuncRequest const & cmd,
FuncStatus & flag)
case LFUN_DIALOG_TOGGLE:
flag.setOnOff(isDialogVisible(cmd.getArg(0)));
- // fall through to set "enable"
+ // to set "enable"
+ // fall through
case LFUN_DIALOG_SHOW: {
string const name = cmd.getArg(0);
if (!doc_buffer)
diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp
index 1490c2c..36ebfa0 100644
--- a/src/insets/InsetCaption.cpp
+++ b/src/insets/InsetCaption.cpp
@@ -209,6 +209,8 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest &
cmd)
break;
}
}
+ // no "changetype":
+ // fall through
default:
InsetText::doDispatch(cur, cmd);
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index fcffac8..021b7f3 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -209,6 +209,8 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const
& cmd,
flag.setEnabled(false);
return true;
}
+ // no subfloat:
+ // fall through
default:
return InsetCaptionable::getStatus(cur, cmd, flag);
diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp
index ce7701f..789a774 100644
--- a/src/insets/InsetLabel.cpp
+++ b/src/insets/InsetLabel.cpp
@@ -214,6 +214,8 @@ bool InsetLabel::getStatus(Cursor & cur, FuncRequest const
& cmd,
enabled = false;
break;
}
+ // no "changetype":
+ // fall through
default:
return InsetCommand::getStatus(cur, cmd, status);
}
diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp
index f75e155..633a244 100644
--- a/src/insets/InsetListings.cpp
+++ b/src/insets/InsetListings.cpp
@@ -441,6 +441,7 @@ bool InsetListings::getStatus(Cursor & cur, FuncRequest
const & cmd,
return true;
}
}
+ // fall through
default:
return InsetCaptionable::getStatus(cur, cmd, status);
}
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 891d932..b209053 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4676,12 +4676,14 @@ bool InsetTabular::getFeatureStatus(Cursor & cur,
string const & s,
// therefore allow always left but right and center only if
there is no width
case Tabular::M_ALIGN_LEFT:
flag = false;
+ // fall through
case Tabular::ALIGN_LEFT:
status.setOnOff(tabular.getAlignment(cur.idx(), flag)
== LYX_ALIGN_LEFT);
break;
case Tabular::M_ALIGN_RIGHT:
flag = false;
+ // fall through
case Tabular::ALIGN_RIGHT:
status.setEnabled(!(tabular.isMultiRow(cur.idx())
&& !tabular.getPWidth(cur.idx()).zero()));
@@ -4690,6 +4692,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string
const & s,
case Tabular::M_ALIGN_CENTER:
flag = false;
+ // fall through
case Tabular::ALIGN_CENTER:
status.setEnabled(!(tabular.isMultiRow(cur.idx())
&& !tabular.getPWidth(cur.idx()).zero()));
@@ -4710,6 +4713,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string
const & s,
case Tabular::M_VALIGN_TOP:
flag = false;
+ // fall through
case Tabular::VALIGN_TOP:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@@ -4719,6 +4723,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string
const & s,
case Tabular::M_VALIGN_BOTTOM:
flag = false;
+ // fall through
case Tabular::VALIGN_BOTTOM:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@@ -4728,6 +4733,7 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string
const & s,
case Tabular::M_VALIGN_MIDDLE:
flag = false;
+ // fall through
case Tabular::VALIGN_MIDDLE:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@@ -5006,7 +5012,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest
const & cmd,
status.setEnabled(false);
return true;
}
- // Fall back
+ // fall through
case LFUN_NEWLINE_INSERT: {
if (tabular.getPWidth(cur.idx()).zero()) {
status.setEnabled(false);
@@ -5660,6 +5666,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::M_VALIGN_BOTTOM:
case Tabular::M_VALIGN_MIDDLE:
flag = false;
+ // fall through
case Tabular::VALIGN_TOP:
case Tabular::VALIGN_BOTTOM:
case Tabular::VALIGN_MIDDLE:
@@ -5782,6 +5789,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::SET_ALL_LINES:
setLines = true;
+ // fall through
case Tabular::UNSET_ALL_LINES:
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
for (col_type c = sel_col_start; c <= sel_col_end; ++c)
{
@@ -5906,6 +5914,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTFIRSTHEAD:
flag = false;
+ // fall through
case Tabular::SET_LTFIRSTHEAD:
tabular.getRowOfLTFirstHead(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@@ -5914,6 +5923,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTHEAD:
flag = false;
+ // fall through
case Tabular::SET_LTHEAD:
tabular.getRowOfLTHead(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@@ -5922,6 +5932,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTFOOT:
flag = false;
+ // fall through
case Tabular::SET_LTFOOT:
tabular.getRowOfLTFoot(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@@ -5930,6 +5941,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTLASTFOOT:
flag = false;
+ // fall through
case Tabular::SET_LTLASTFOOT:
tabular.getRowOfLTLastFoot(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@@ -5938,6 +5950,7 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTNEWPAGE:
flag = false;
+ // fall through
case Tabular::SET_LTNEWPAGE:
tabular.setLTNewPage(row, flag);
break;
diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 4ef1d45..e0163ad 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -1028,8 +1028,8 @@ void TeXOnePar(Buffer const & buf,
break;
}
}
-
- // fall through possible
+ // possible
+ // fall through
default:
// we don't need it for the last paragraph!!!
if (nextpar)