[fbreader] Added apparently missing breaks

Caught by -Wimplicit-fallthrough
This commit is contained in:
Slava Monich 2020-02-03 00:52:34 +02:00
parent 0bd4373862
commit 6b5b268321
3 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
* Copyright (C) 2020 Slava Monich <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -97,6 +98,7 @@ void NCXReader::endElementHandler(const char *fullTag) {
myPointStack.pop_back();
myReadState = myPointStack.empty() ? READ_MAP : READ_POINT;
}
break;
case READ_LABEL:
if (TAG_NAVLABEL == tag) {
myReadState = READ_POINT;

View file

@ -1,5 +1,6 @@
/*
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
* Copyright (C) 2020 Slava Monich <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -175,6 +176,7 @@ bool PmlReader::parseDocument(ZLInputStream &stream) {
switch (parserState) {
case READ_NORMAL_DATA:
processCharData(dataStart, end - dataStart);
break;
case READ_TAG:
tagName.append(dataStart, end - dataStart);
break;

View file

@ -1,5 +1,6 @@
/*
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
* Copyright (C) 2020 Slava Monich <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -376,6 +377,7 @@ bool RtfReader::parseDocument() {
switch (parserState) {
case READ_NORMAL_DATA:
processCharData(dataStart, end - dataStart);
break;
case READ_KEYWORD:
keyword.append(dataStart, end - dataStart);
break;