Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
erfanhuda opened this issue Apr 26, 2023 · 0 comments

Comments

@erfanhuda
Copy link
Contributor

erfanhuda commented Apr 26, 2023

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant