mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
style cleanup
This commit is contained in:
parent
e583ab0418
commit
3b600060a2
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ bool RtfDescriptionReader::readDocument(const ZLFile &file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RtfDescriptionReader::addCharData(const char *data, size_t len, bool convert) {
|
void RtfDescriptionReader::addCharData(const char *data, size_t len, bool convert) {
|
||||||
if (myDoRead) {
|
if (myDoRead && len > 0) {
|
||||||
if (convert) {
|
if (convert) {
|
||||||
myConverter->convert(myBuffer, data, data + len);
|
myConverter->convert(myBuffer, data, data + len);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -49,7 +49,7 @@ RtfFontPropertyCommand::RtfFontPropertyCommand(RtfReader::FontProperty property)
|
||||||
}
|
}
|
||||||
|
|
||||||
void RtfFontPropertyCommand::run(RtfReader &reader, int *parameter) const {
|
void RtfFontPropertyCommand::run(RtfReader &reader, int *parameter) const {
|
||||||
bool start = (parameter == 0) || (*parameter != 0);
|
const bool start = (parameter == 0) || (*parameter != 0);
|
||||||
switch (myProperty) {
|
switch (myProperty) {
|
||||||
case RtfReader::FONT_BOLD:
|
case RtfReader::FONT_BOLD:
|
||||||
if (reader.myState.Bold != start) {
|
if (reader.myState.Bold != start) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue