We really need to get rid of TagLib::uint...
// Now add the chunk to the file
- long len = length();
writeChunk(name, data, offset, std::max<long>(0, length() - offset), (offset & 1) ? 1 : 0);
// And update our internal structure
removeChunk(d->tagChunkID);
if(tags & Info){
- uint chunkId = findInfoTagChunk();
- if(chunkId != -1)
+ TagLib::uint chunkId = findInfoTagChunk();
+ if(chunkId != TagLib::uint(-1))
removeChunk(chunkId);
}
}
-uint RIFF::WAV::File::findInfoTagChunk()
+TagLib::uint RIFF::WAV::File::findInfoTagChunk()
{
for(uint i = 0; i < chunkCount(); ++i) {
if(chunkName(i) == "LIST" && chunkData(i).mid(0, 4) == "INFO") {
}
}
- return -1;
+ return TagLib::uint(-1);
}