Use namespace for static taglib to avoid collision with taglib

linked to vlc
This commit is contained in:
Jonas Kvinge
2019-04-25 23:00:25 +02:00
parent ace8ecbb4e
commit 1c926cca45
227 changed files with 460 additions and 447 deletions

View File

@@ -36,7 +36,7 @@
#include "apetag.h"
#include "apefooter.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
namespace
{
@@ -93,7 +93,7 @@ bool MPC::File::isSupported(IOStream *stream)
////////////////////////////////////////////////////////////////////////////////
MPC::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
TagLib::File(file),
Strawberry_TagLib::TagLib::File(file),
d(new FilePrivate())
{
if(isOpen())
@@ -101,7 +101,7 @@ MPC::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
}
MPC::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle) :
TagLib::File(stream),
Strawberry_TagLib::TagLib::File(stream),
d(new FilePrivate())
{
if(isOpen())
@@ -113,7 +113,7 @@ MPC::File::~File()
delete d;
}
TagLib::Tag *MPC::File::tag() const
Strawberry_TagLib::TagLib::Tag *MPC::File::tag() const
{
return &d->tag;
}

View File

@@ -34,7 +34,7 @@
#include "tlist.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
class Tag;
@@ -53,17 +53,17 @@ namespace TagLib {
namespace MPC {
//! An implementation of TagLib::File with MPC specific methods
//! An implementation of Strawberry_TagLib::TagLib::File with MPC specific methods
/*!
* This implements and provides an interface for MPC files to the
* TagLib::Tag and TagLib::AudioProperties interfaces by way of implementing
* the abstract TagLib::File API as well as providing some additional
* Strawberry_TagLib::TagLib::Tag and Strawberry_TagLib::TagLib::AudioProperties interfaces by way of implementing
* the abstract Strawberry_TagLib::TagLib::File API as well as providing some additional
* information specific to MPC files.
* The only invalid tag combination supported is an ID3v1 tag after an APE tag.
*/
class TAGLIB_EXPORT File : public TagLib::File
class TAGLIB_EXPORT File : public Strawberry_TagLib::TagLib::File
{
public:
/*!
@@ -113,7 +113,7 @@ namespace TagLib {
* Returns the Tag for this file. This will be an APE tag, an ID3v1 tag
* or a combination of the two.
*/
virtual TagLib::Tag *tag() const;
virtual Strawberry_TagLib::TagLib::Tag *tag() const;
/*!
* Implements the unified property interface -- export function.

View File

@@ -31,7 +31,7 @@
#include "mpcproperties.h"
#include "mpcfile.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
class MPC::Properties::PropertiesPrivate
{

View File

@@ -29,7 +29,7 @@
#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MPC {