Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 633:4612d44ae753 fix-static-analysis
Fixes from clang modernize-use-override
author | Chris Cannam |
---|---|
date | Thu, 22 Nov 2018 14:55:43 +0000 |
parents | ca64cc9047d0 |
children | e2715204feaa |
comparison
equal
deleted
inserted
replaced
632:29bef008588e | 633:4612d44ae753 |
---|---|
1552 SVFileIdentifier() : | 1552 SVFileIdentifier() : |
1553 m_inSv(false), | 1553 m_inSv(false), |
1554 m_inData(false), | 1554 m_inData(false), |
1555 m_type(SVFileReader::UnknownFileType) | 1555 m_type(SVFileReader::UnknownFileType) |
1556 { } | 1556 { } |
1557 virtual ~SVFileIdentifier() { } | 1557 ~SVFileIdentifier() override { } |
1558 | 1558 |
1559 void parse(QXmlInputSource &source) { | 1559 void parse(QXmlInputSource &source) { |
1560 QXmlSimpleReader reader; | 1560 QXmlSimpleReader reader; |
1561 reader.setContentHandler(this); | 1561 reader.setContentHandler(this); |
1562 reader.setErrorHandler(this); | 1562 reader.setErrorHandler(this); |
1563 reader.parse(source); | 1563 reader.parse(source); |
1564 } | 1564 } |
1565 | 1565 |
1566 SVFileReader::FileType getType() const { return m_type; } | 1566 SVFileReader::FileType getType() const { return m_type; } |
1567 | 1567 |
1568 virtual bool startElement(const QString &, | 1568 bool startElement(const QString &, |
1569 const QString &, | 1569 const QString &, |
1570 const QString &qName, | 1570 const QString &qName, |
1571 const QXmlAttributes& atts) | 1571 const QXmlAttributes& atts) override |
1572 { | 1572 { |
1573 QString name = qName.toLower(); | 1573 QString name = qName.toLower(); |
1574 | 1574 |
1575 // SV session files have an sv element containing a data | 1575 // SV session files have an sv element containing a data |
1576 // element containing a model element with mainModel="true". | 1576 // element containing a model element with mainModel="true". |
1599 } | 1599 } |
1600 } | 1600 } |
1601 return true; | 1601 return true; |
1602 } | 1602 } |
1603 | 1603 |
1604 virtual bool endElement(const QString &, | 1604 bool endElement(const QString &, |
1605 const QString &, | 1605 const QString &, |
1606 const QString &qName) | 1606 const QString &qName) override |
1607 { | 1607 { |
1608 QString name = qName.toLower(); | 1608 QString name = qName.toLower(); |
1609 | 1609 |
1610 if (name == "sv") { | 1610 if (name == "sv") { |
1611 if (m_inSv) { | 1611 if (m_inSv) { |