[app] Turned some warnings into debug messages
This commit is contained in:
parent
7b7f8b9e97
commit
09fc0cbe3e
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ BooksPos::List BooksBookModel::PagingTask::loadPageMarks()
|
||||||
const qint64 size = file.size();
|
const qint64 size = file.size();
|
||||||
uchar* map = file.map(0, size);
|
uchar* map = file.map(0, size);
|
||||||
if (map) {
|
if (map) {
|
||||||
HWARN("reading" << qPrintable(iPageMarksFile));
|
HDEBUG("reading" << qPrintable(iPageMarksFile));
|
||||||
if (size > sizeof(MarksHeader)) {
|
if (size > sizeof(MarksHeader)) {
|
||||||
const qint64 dataSize = size - sizeof(MarksHeader);
|
const qint64 dataSize = size - sizeof(MarksHeader);
|
||||||
const MarksHeader* hdr = (MarksHeader*)map;
|
const MarksHeader* hdr = (MarksHeader*)map;
|
||||||
|
@ -192,7 +192,7 @@ void BooksBookModel::PagingTask::savePageMarks()
|
||||||
!iData->iPageMarks.isEmpty()) {
|
!iData->iPageMarks.isEmpty()) {
|
||||||
QFile file(iPageMarksFile);
|
QFile file(iPageMarksFile);
|
||||||
if (file.open(QIODevice::ReadWrite)) {
|
if (file.open(QIODevice::ReadWrite)) {
|
||||||
HWARN("writing" << qPrintable(iPageMarksFile));
|
HDEBUG("writing" << qPrintable(iPageMarksFile));
|
||||||
const int n = iData->iPageMarks.count();
|
const int n = iData->iPageMarks.count();
|
||||||
memset(&hdr, 0, sizeof(hdr));
|
memset(&hdr, 0, sizeof(hdr));
|
||||||
memcpy(hdr.magic, MarksFileMagic, sizeof(hdr.magic));
|
memcpy(hdr.magic, MarksFileMagic, sizeof(hdr.magic));
|
||||||
|
|
Loading…
Reference in a new issue