fralx / LimeReport

Report generator for Qt Framework
http://limereport.ru/
Other
403 stars 154 forks source link

No viable conversion from returned value of type 'int' to function return type (vectors) on #434

Open erfanhuda opened 1 year ago

erfanhuda commented 1 year ago

No viable conversion from returned value of type 'int' to function return type (vectors) on lrxmlwriter.cpp line 83.

Updating the following code

bool XMLWriter::setContent(QString fileName)
{
    QFile xmlFile(fileName);
    if (xmlFile.open(QFile::ReadOnly)){
        return m_doc->setContent(&xmlFile);
    }
    return false;
}

to

bool XMLWriter::setContent(QString fileName)
{
    QFile xmlFile(fileName);
    if (xmlFile.open(QFile::ReadOnly)){
        m_doc->setContent(&xmlFile);
        return true;
    }
    return false;
}