Restore the ABI breakage by bringing back a removed private static variable.

This commit is contained in:
Tsuda Kageyu
2016-10-19 15:57:28 +09:00
parent 0dac721ce2
commit 97aaa0f979
2 changed files with 13 additions and 0 deletions

View File

@ -787,6 +787,12 @@ void String::detach()
if(d->count() > 1)
String(d->data.c_str()).swap(*this);
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
const String::Type String::WCharByteOrder = wcharByteOrder();
}
////////////////////////////////////////////////////////////////////////////////

View File

@ -536,6 +536,13 @@ namespace TagLib {
void detach();
private:
/*!
* \deprecated This variable is no longer used, but NEVER remove this. It
* may lead to a linkage error.
*/
// BIC: remove
static const Type WCharByteOrder;
class StringPrivate;
StringPrivate *d;
};