mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
code cleanup (synchronization with C++ version)
This commit is contained in:
parent
e2ace6b693
commit
784b0acee0
2 changed files with 3 additions and 3 deletions
|
@ -212,8 +212,8 @@ void FB2BookReader::startElementHandler(int tag, const char **xmlattributes) {
|
|||
ref = attributeValue(xmlattributes, myBrokenHrefPredicate);
|
||||
}
|
||||
const char *vOffset = attributeValue(xmlattributes, "voffset");
|
||||
char offset = (vOffset != 0) ? atoi(vOffset) : 0;
|
||||
if ((ref != 0) && (*ref == '#')) {
|
||||
char offset = vOffset != 0 ? std::atoi(vOffset) : 0;
|
||||
if (ref != 0 && *ref == '#') {
|
||||
++ref;
|
||||
const bool isCoverImage =
|
||||
myParagraphsBeforeBodyNumber ==
|
||||
|
|
|
@ -81,7 +81,7 @@ static const FB2Reader::Tag TAGS[] = {
|
|||
|
||||
int FB2Reader::tag(const char *name) {
|
||||
for (int i = 0; ; ++i) {
|
||||
if ((TAGS[i].tagName == 0) || (strcmp(name, TAGS[i].tagName) == 0)) {
|
||||
if (TAGS[i].tagName == 0 || std::strcmp(name, TAGS[i].tagName) == 0) {
|
||||
return TAGS[i].tagCode;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue