What is wrong with this line of code: expected token? [closed]
This is part of a C++ project. IDE marked it as: expected token )` `0` qint64 Document::m_StartPointer: if (cursorPos >= (pageSize - 100) && m_endPointer < m_fileSize) { qDebug() 0) { // This line of code qDebug()
This is part of a C++ project. IDE marked it as: expected token )` `0` qint64 Document::m_StartPointer:
if (cursorPos >= (pageSize - 100) && m_endPointer < m_fileSize) {
qDebug() << "Expanding loaded content forward.";
m_startPointer = m_endPointer;
m_endPointer = qMin(m_startPointer + pageSize, m_fileSize);
loadContent();
} else if (cursorPos < 100 && m_startPointer > 0) { // This line of code
qDebug() << "Expanding loaded content backward.";
m_endPointer = m_startPointer;
m_startPointer = qMax(m_startPointer - pageSize, qint64(0));
m_endPointer = m_startPointer + pageSize;
loadContent();
}
What is wrong with "This line of code". The project compiles without warning.
I searched google and found nothing about this problem.