mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix compiler warnings
This commit is contained in:
parent
21e5aac024
commit
83f1909e84
@ -374,7 +374,7 @@ void PegMarkdownHighlighter::updateSingleFormatBlocks(const QVector<QVector<HLUn
|
|||||||
const HLUnit &unit = units[0];
|
const HLUnit &unit = units[0];
|
||||||
if (unit.start == 0 && unit.length > 0) {
|
if (unit.start == 0 && unit.length > 0) {
|
||||||
QTextBlock block = m_doc->findBlockByNumber(i);
|
QTextBlock block = m_doc->findBlockByNumber(i);
|
||||||
if (block.length() - 1 == unit.length) {
|
if (block.length() - 1 == (int)unit.length) {
|
||||||
m_singleFormatBlocks.insert(i);
|
m_singleFormatBlocks.insert(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user