mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Make String:null and ByteVector::null const.
This commit is contained in:
parent
914e5f9fd8
commit
e93696f573
@ -320,7 +320,7 @@ public:
|
||||
// static members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ByteVector ByteVector::null;
|
||||
const ByteVector ByteVector::null;
|
||||
|
||||
ByteVector ByteVector::fromCString(const char *s, uint length)
|
||||
{
|
||||
|
@ -424,7 +424,8 @@ namespace TagLib {
|
||||
* A static, empty ByteVector which is convenient and fast (since returning
|
||||
* an empty or "null" value does not require instantiating a new ByteVector).
|
||||
*/
|
||||
static ByteVector null;
|
||||
static const ByteVector null;
|
||||
|
||||
|
||||
/*!
|
||||
* Returns a hex-encoded copy of the byte vector.
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
std::string cstring;
|
||||
};
|
||||
|
||||
String String::null;
|
||||
const String String::null;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -474,7 +474,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* A null string provided for convenience.
|
||||
*/
|
||||
static String null;
|
||||
static const String null;
|
||||
|
||||
protected:
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user