Make sure that own header file is included first

Each header corresponding to a .cpp file must be self-contained,
and can be #included without prerequisites.
This commit is contained in:
Urs Fleisch
2023-07-16 08:33:35 +02:00
parent cc7d23cdf5
commit d314bfa06a
77 changed files with 137 additions and 101 deletions

View File

@ -23,6 +23,8 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "oggflacfile.h"
#include "tbytevector.h"
#include "tstring.h"
#include "tdebug.h"
@ -30,7 +32,6 @@
#include "tagutils.h"
#include "xiphcomment.h"
#include "oggflacfile.h"
using namespace TagLib;
using TagLib::FLAC::Properties;

View File

@ -23,12 +23,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "oggfile.h"
#include "tbytevectorlist.h"
#include "tmap.h"
#include "tstring.h"
#include "tdebug.h"
#include "oggfile.h"
#include "oggpage.h"
#include "oggpageheader.h"

View File

@ -23,12 +23,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "oggpage.h"
#include <algorithm>
#include "tstring.h"
#include "tdebug.h"
#include "oggpage.h"
#include "oggpageheader.h"
#include "oggfile.h"

View File

@ -23,13 +23,14 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "oggpageheader.h"
#include <bitset>
#include "tstring.h"
#include "tdebug.h"
#include "taglib.h"
#include "oggpageheader.h"
#include "oggfile.h"
using namespace TagLib;

View File

@ -27,13 +27,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "opusfile.h"
#include "tstring.h"
#include "tdebug.h"
#include "tpropertymap.h"
#include "tagutils.h"
#include "opusfile.h"
using namespace TagLib;
using namespace TagLib::Ogg;

View File

@ -27,12 +27,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "opusproperties.h"
#include "tstring.h"
#include "tdebug.h"
#include "oggpageheader.h"
#include "opusproperties.h"
#include "opusfile.h"
using namespace TagLib;

View File

@ -27,13 +27,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "speexfile.h"
#include "tstring.h"
#include "tdebug.h"
#include "tpropertymap.h"
#include "tagutils.h"
#include "speexfile.h"
using namespace TagLib;
using namespace TagLib::Ogg;

View File

@ -27,12 +27,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "speexproperties.h"
#include "tstring.h"
#include "tdebug.h"
#include "oggpageheader.h"
#include "speexproperties.h"
#include "speexfile.h"
using namespace TagLib;

View File

@ -23,6 +23,8 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "vorbisfile.h"
#include <bitset>
#include "tstring.h"
@ -30,8 +32,6 @@
#include "tpropertymap.h"
#include "tagutils.h"
#include "vorbisfile.h"
using namespace TagLib;
class Vorbis::File::FilePrivate

View File

@ -23,12 +23,13 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "vorbisproperties.h"
#include "tstring.h"
#include "tdebug.h"
#include "oggpageheader.h"
#include "vorbisproperties.h"
#include "vorbisfile.h"
using namespace TagLib;

View File

@ -23,11 +23,12 @@
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#include "xiphcomment.h"
#include "tbytevector.h"
#include "tdebug.h"
#include "flacpicture.h"
#include "xiphcomment.h"
#include "tpropertymap.h"
using namespace TagLib;