mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #25: Remove pro/qbs, fix MSVC build
This commit is contained in:
@ -705,7 +705,7 @@ PDFObject PDFParser::getObject()
|
||||
{
|
||||
case PDFLexicalAnalyzer::TokenType::Boolean:
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::Bool);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::Bool);
|
||||
const bool value = m_lookAhead1.data.toBool();
|
||||
shift();
|
||||
return PDFObject::createBool(value);
|
||||
@ -713,7 +713,7 @@ PDFObject PDFParser::getObject()
|
||||
|
||||
case PDFLexicalAnalyzer::TokenType::Integer:
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::LongLong);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::LongLong);
|
||||
const PDFInteger value = m_lookAhead1.data.toLongLong();
|
||||
shift();
|
||||
|
||||
@ -723,7 +723,7 @@ PDFObject PDFParser::getObject()
|
||||
m_lookAhead2.type == PDFLexicalAnalyzer::TokenType::Command &&
|
||||
m_lookAhead2.data.toByteArray() == PDF_REFERENCE_COMMAND)
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::LongLong);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::LongLong);
|
||||
const PDFInteger generation = m_lookAhead1.data.toLongLong();
|
||||
shift();
|
||||
shift();
|
||||
@ -738,7 +738,7 @@ PDFObject PDFParser::getObject()
|
||||
|
||||
case PDFLexicalAnalyzer::TokenType::Real:
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::Double);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::Double);
|
||||
const PDFReal value = m_lookAhead1.data.toDouble();
|
||||
shift();
|
||||
return PDFObject::createReal(value);
|
||||
@ -746,7 +746,7 @@ PDFObject PDFParser::getObject()
|
||||
|
||||
case PDFLexicalAnalyzer::TokenType::String:
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::ByteArray);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::QByteArray);
|
||||
QByteArray array = m_lookAhead1.data.toByteArray();
|
||||
array.shrink_to_fit();
|
||||
shift();
|
||||
@ -755,7 +755,7 @@ PDFObject PDFParser::getObject()
|
||||
|
||||
case PDFLexicalAnalyzer::TokenType::Name:
|
||||
{
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QVariant::ByteArray);
|
||||
Q_ASSERT(m_lookAhead1.data.typeId() == QMetaType::QByteArray);
|
||||
QByteArray array = m_lookAhead1.data.toByteArray();
|
||||
array.shrink_to_fit();
|
||||
shift();
|
||||
|
Reference in New Issue
Block a user