mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Apply clang-tidy's modernize-use-auto
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5449 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -817,7 +817,7 @@ QDomDocument QETProject::toXml() {
|
||||
for(Diagram *diagram : diagrams_list)
|
||||
{
|
||||
// Write the diagram to XML only if it is not of type DiagramFolioList.
|
||||
DiagramFolioList *ptr = dynamic_cast<DiagramFolioList *>(diagram);
|
||||
auto *ptr = dynamic_cast<DiagramFolioList *>(diagram);
|
||||
if ( !ptr )
|
||||
{
|
||||
qDebug() << qPrintable(QString("QETProject::toXml() : exporting diagram \"%1\"").arg(diagram -> title())) << "[" << diagram << "]";
|
||||
@@ -1099,7 +1099,7 @@ Diagram *QETProject::addNewDiagram() {
|
||||
if (isReadOnly()) return(nullptr);
|
||||
|
||||
// cree un nouveau schema
|
||||
Diagram *diagram = new Diagram(this);
|
||||
auto *diagram = new Diagram(this);
|
||||
|
||||
// lui transmet les parametres par defaut
|
||||
diagram -> border_and_titleblock.importBorder(defaultBorderProperties());
|
||||
@@ -1325,7 +1325,7 @@ void QETProject::readDiagramsXml(QDomDocument &xml_project)
|
||||
if (diagram_nodes.at(i).isElement())
|
||||
{
|
||||
QDomElement diagram_xml_element = diagram_nodes.at(i).toElement();
|
||||
Diagram *diagram = new Diagram(this);
|
||||
auto *diagram = new Diagram(this);
|
||||
bool diagram_loading = diagram -> initFromXml(diagram_xml_element);
|
||||
if (diagram_loading)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user