1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

code cleanup

This commit is contained in:
Nikolay Pultsin 2012-10-27 04:03:46 +04:00
parent 91aa27b52e
commit 3753e8d202
3 changed files with 4 additions and 3 deletions

View file

@ -19,6 +19,7 @@
#include <ZLFile.h>
#include <ZLInputStream.h>
#include <ZLEncodingConverter.h>
#include "RtfPlugin.h"
#include "RtfDescriptionReader.h"
@ -42,7 +43,7 @@ bool RtfPlugin::readMetaInfo(Book &book) const {
}
if (book.encoding().empty()) {
book.setEncoding("utf-8");
book.setEncoding(ZLEncodingConverter::UTF8);
} else if (book.language().empty()) {
shared_ptr<ZLInputStream> stream = new RtfReaderStream(book.file(), 50000);
if (!stream.isNull()) {