Don't use deprecated headers.

This patch was generated using clang-tidy:

  clang-tidy -checks="-*,modernize-deprecated-headers" -fix

(with some additional manual fixups)
This commit is contained in:
Uwe Hermann 2017-03-10 00:34:10 +01:00
parent 13e475e412
commit eb8269e3b5
24 changed files with 36 additions and 41 deletions

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <cstdint>
#include <QDebug>

View File

@ -19,9 +19,9 @@
#include <extdef.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <algorithm>

View File

@ -19,9 +19,9 @@
#include <extdef.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include "logic.hpp"

View File

@ -20,10 +20,9 @@
#include "segment.hpp"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <vector>
using std::lock_guard;

View File

@ -17,14 +17,15 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <cassert>
#ifdef ENABLE_DECODE
#include <libsigrokdecode/libsigrokdecode.h>
#endif
#include <cassert>
#include <algorithm>
#include <iterator>
#include <cstdint>
#include <cstdarg>
#include <QAction>
#include <QApplication>
@ -48,8 +49,6 @@
#include "view/view.hpp"
#include "views/trace/standardbar.hpp"
#include <stdint.h>
#include <stdarg.h>
#include <libsigrokcxx/libsigrokcxx.hpp>
using std::dynamic_pointer_cast;

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include <QCheckBox>

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include <QDoubleSpinBox>

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include <QComboBox>

View File

@ -17,8 +17,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <assert.h>
#include <cstdint>
#include <cassert>
#include <QSpinBox>

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include <QLineEdit>
#include <QSpinBox>

View File

@ -21,8 +21,7 @@
#include <extdef.h>
#include <assert.h>
#include <cassert>
#include <algorithm>
#include <sstream>

View File

@ -19,7 +19,7 @@
#include <extdef.h>
#include <assert.h>
#include <cassert>
#include <cmath>
#include <QApplication>

View File

@ -19,7 +19,7 @@
#include <extdef.h>
#include <assert.h>
#include <cassert>
#include <cmath>
#include <QApplication>

View File

@ -18,8 +18,8 @@
*/
#include <extdef.h>
#include <assert.h>
#include <cassert>
#include <algorithm>
#include <QMenu>

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include "view.hpp"

View File

@ -19,7 +19,7 @@
#include "colourbutton.hpp"
#include <assert.h>
#include <cassert>
#include <QApplication>
#include <QPainter>

View File

@ -24,7 +24,7 @@
#include <QPushButton>
#include <QVBoxLayout>
#include <assert.h>
#include <cassert>
namespace pv {
namespace widgets {

View File

@ -18,8 +18,7 @@
*/
#include <algorithm>
#include <assert.h>
#include <cassert>
#include <QtGui>
#include <QApplication>

View File

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <cassert>
#include "popuptoolbutton.hpp"

View File

@ -20,10 +20,8 @@
#include "sweeptimingwidget.hpp"
#include <cstdlib>
#include <vector>
#include <assert.h>
#include <cassert>
#include <extdef.h>

View File

@ -19,9 +19,10 @@
#include "signalhandler.hpp"
#include <assert.h>
#include <signal.h>
#include <stdlib.h>
#include <cassert>
#include <csignal>
#include <cstdlib>
#include <sys/socket.h>
#include <unistd.h>

View File

@ -19,7 +19,7 @@
#include <extdef.h>
#include <stdint.h>
#include <cstdint>
#include <boost/test/unit_test.hpp>

View File

@ -19,7 +19,7 @@
#include <extdef.h>
#include <stdint.h>
#include <cstdint>
#include <boost/test/unit_test.hpp>

View File

@ -20,7 +20,7 @@
#include <extdef.h>
#include <stdint.h>
#include <cstdint>
#include <boost/test/unit_test.hpp>