Make String:null and ByteVector::null const.

This commit is contained in:
Tsuda Kageyu 2013-03-22 01:41:32 +09:00
parent 914e5f9fd8
commit e93696f573
4 changed files with 5 additions and 4 deletions

View File

@ -320,7 +320,7 @@ public:
// static members
////////////////////////////////////////////////////////////////////////////////
ByteVector ByteVector::null;
const ByteVector ByteVector::null;
ByteVector ByteVector::fromCString(const char *s, uint length)
{

View File

@ -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.

View File

@ -124,7 +124,7 @@ public:
std::string cstring;
};
String String::null;
const String String::null;
////////////////////////////////////////////////////////////////////////////////

View File

@ -474,7 +474,7 @@ namespace TagLib {
/*!
* A null string provided for convenience.
*/
static String null;
static const String null;
protected:
/*!