From 8b647e5fa71bbad8d244dbe1fac61e58ebedc93c Mon Sep 17 00:00:00 2001 From: Graham Perks Date: Tue, 26 Jul 2011 21:43:11 -0500 Subject: [PATCH] Fix for VS2010 which had been throwing out "cannot access protected member declared in class 'TagLib::Mod::Properties'" errors. --- taglib/it/itproperties.h | 3 +++ taglib/mod/modproperties.h | 2 ++ taglib/s3m/s3mproperties.h | 2 ++ taglib/xm/xmproperties.h | 2 ++ 4 files changed, 9 insertions(+) diff --git a/taglib/it/itproperties.h b/taglib/it/itproperties.h index 79ebc383..b63b0c85 100644 --- a/taglib/it/itproperties.h +++ b/taglib/it/itproperties.h @@ -72,7 +72,10 @@ namespace TagLib { uchar panningSeparation() const; uchar pitchWheelDepth() const; +#if !defined(_MSC_VER) protected: +#endif + void setChannels(int channels); void setLengthInPatterns(ushort lengthInPatterns); diff --git a/taglib/mod/modproperties.h b/taglib/mod/modproperties.h index 8bf3ac5e..bdf1b752 100644 --- a/taglib/mod/modproperties.h +++ b/taglib/mod/modproperties.h @@ -41,7 +41,9 @@ namespace TagLib { uint instrumentCount() const; uchar lengthInPatterns() const; +#if !defined(_MSC_VER) protected: +#endif void setChannels(int channels); void setInstrumentCount(uint sampleCount); diff --git a/taglib/s3m/s3mproperties.h b/taglib/s3m/s3mproperties.h index 4be14508..820623ab 100644 --- a/taglib/s3m/s3mproperties.h +++ b/taglib/s3m/s3mproperties.h @@ -61,7 +61,9 @@ namespace TagLib { uchar tempo() const; uchar bpmSpeed() const; +#if !defined(_MSC_VER) protected: +#endif void setChannels(int channels); void setLengthInPatterns (ushort lengthInPatterns); diff --git a/taglib/xm/xmproperties.h b/taglib/xm/xmproperties.h index 97f93111..7ba193a2 100644 --- a/taglib/xm/xmproperties.h +++ b/taglib/xm/xmproperties.h @@ -54,7 +54,9 @@ namespace TagLib { ushort tempo() const; ushort bpmSpeed() const; +#if !defined(_MSC_VER) protected: +#endif void setChannels(int channels); void setLengthInPatterns(ushort lengthInPatterns); -- 2.40.0