Replace use of deprecated C++ headers
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
2
3rdparty/taglib/mpc/mpcproperties.cpp
vendored
2
3rdparty/taglib/mpc/mpcproperties.cpp
vendored
@@ -26,7 +26,7 @@
|
||||
#include <tstring.h>
|
||||
#include <tdebug.h>
|
||||
#include <bitset>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include "mpcproperties.h"
|
||||
#include "mpcfile.h"
|
||||
|
||||
@@ -23,10 +23,11 @@
|
||||
* http://www.mozilla.org/MPL/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include <tbytevectorlist.h>
|
||||
#include <tpropertymap.h>
|
||||
#include <tdebug.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "chapterframe.h"
|
||||
|
||||
|
||||
@@ -23,15 +23,14 @@
|
||||
* http://www.mozilla.org/MPL/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include "tbytevectorstream.h"
|
||||
#include "tstring.h"
|
||||
#include "tdebug.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace Strawberry_TagLib::TagLib;
|
||||
|
||||
class ByteVectorStream::ByteVectorStreamPrivate {
|
||||
|
||||
2
3rdparty/taglib/toolkit/tfile.cpp
vendored
2
3rdparty/taglib/toolkit/tfile.cpp
vendored
@@ -33,7 +33,7 @@
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
# include <cstdio>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
2
3rdparty/taglib/toolkit/tfilestream.cpp
vendored
2
3rdparty/taglib/toolkit/tfilestream.cpp
vendored
@@ -30,7 +30,7 @@
|
||||
#ifdef _WIN32
|
||||
# include <windows.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
# include <cstdio>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
2
3rdparty/taglib/toolkit/tutils.h
vendored
2
3rdparty/taglib/toolkit/tutils.h
vendored
@@ -35,7 +35,7 @@
|
||||
# endif
|
||||
|
||||
# if defined(HAVE_MSC_BYTESWAP)
|
||||
# include <stdlib.h>
|
||||
# include <cstdlib>
|
||||
# elif defined(HAVE_GLIBC_BYTESWAP)
|
||||
# include <byteswap.h>
|
||||
# elif defined(HAVE_MAC_BYTESWAP)
|
||||
|
||||
2
3rdparty/taglib/xm/xmfile.cpp
vendored
2
3rdparty/taglib/xm/xmfile.cpp
vendored
@@ -29,7 +29,7 @@
|
||||
#include "modfileprivate.h"
|
||||
#include "tpropertymap.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace Strawberry_TagLib::TagLib;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
// From Chromium src/base/macros.h
|
||||
|
||||
#include <stddef.h> // For size_t.
|
||||
#include <cstddef> // For size_t.
|
||||
|
||||
// The arraysize(arr) macro returns the # of elements in an array arr.
|
||||
// The expression is a compile-time constant, and therefore can be
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <cxxabi.h>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#ifndef WORKERPOOL_H
|
||||
#define WORKERPOOL_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
#include <cstddef>
|
||||
#include <cassert>
|
||||
#include <sqlite3.h>
|
||||
#include <boost/scope_exit.hpp>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QMutex>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QObject>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <memory>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <iconv.h>
|
||||
|
||||
#include <QtGlobal>
|
||||
@@ -68,7 +68,7 @@
|
||||
# include <QRandomGenerator>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
# include <unistd.h>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
#include <libimobiledevice/afc.h>
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <cstddef>
|
||||
#include <glib.h>
|
||||
#include <glib/gtypes.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QThread>
|
||||
#include <QString>
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
|
||||
#include <QList>
|
||||
#include <QByteArray>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <libmtp.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <QThread>
|
||||
#include <QMutex>
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <cstdio>
|
||||
#include <cerrno>
|
||||
#include <alsa/asoundlib.h>
|
||||
#include <boost/scope_exit.hpp>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <gio/gio.h>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
# define METRONOM_INTERNAL
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
#include <xine.h>
|
||||
#ifdef XINE_ANALYZER
|
||||
# include <xine/metronom.h>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
#include <sys/types.h>
|
||||
#include <xine.h>
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
# include <unistd.h>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "moodbarpipeline.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sys/types.h>
|
||||
#include <chromaprint.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <algorithm>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <QObject>
|
||||
#include <QApplication>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gtypes.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <algorithm>
|
||||
#include <gst/gst.h>
|
||||
|
||||
Reference in New Issue
Block a user