Misleading indentation; statement is not part of the previous ‘if’

Original link: https://ifmet.cn/posts/28b03c75/

Brief description: The Qt used has been upgraded to 5.15.2, and then the IDE compiles the warning ⚠ as follows, the obsessive-compulsive disorder has been committed and must be eliminated.

202208071916076.png

[TOC]

This article was originally published on ” Xie Zang’s Small Station “, and is reproduced here simultaneously.

warn

 screenshot.cpp:164:2: Misleading indentation; statement is not part of the previous 'if'screenshot.cpp:161:5: previous statement is here

PS: ? win10 21H2 ? Qt 5.15.2 ? QtCreator 8.0.0

repair

Modify, modify it to the Tab button or回车自动对齐, you can eliminate this warning⚠; the changes are as follows

202208071917192.png

Serial address

QtExamples

Welcome to star ⭐ and fork ? this series of C++ / QT / DTK learning, with a list of learning from shallow to deep.

This article is reproduced from: https://ifmet.cn/posts/28b03c75/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment