mirror of
https://github.com/taglib/taglib.git
synced 2026-07-13 14:51:05 -04:00
size() to isEmpty() (#1131)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -159,7 +159,7 @@ public:
|
||||
unsigned int read(TagLib::File &file, unsigned int limit) override
|
||||
{
|
||||
ByteVector data = file.readBlock(std::min(1U,limit));
|
||||
if(data.size() > 0) {
|
||||
if(!data.isEmpty()) {
|
||||
value = data[0];
|
||||
}
|
||||
return data.size();
|
||||
|
||||
Reference in New Issue
Block a user