Fix compilation warnings

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1019655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2009-09-04 08:50:24 +00:00
parent b26f8bf5a8
commit 0adea10728
3 changed files with 6 additions and 6 deletions

View File

@ -394,8 +394,8 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
// First step: Pages that contain the comment data
for(List<Page *>::ConstIterator it = pages.begin(); it != pages.end(); ++it) {
const int index = (*it)->header()->pageSequenceNumber();
if(index < static_cast<int>(d->pages.size())) {
const unsigned int index = (*it)->header()->pageSequenceNumber();
if(index < d->pages.size()) {
delete d->pages[index];
d->pages[index] = *it;
}
@ -411,8 +411,8 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
// Second step: the renumbered pages
for(List<Page *>::ConstIterator it = renumberedPages.begin(); it != renumberedPages.end(); ++it) {
const int index = (*it)->header()->pageSequenceNumber();
if(index < static_cast<int>(d->pages.size())) {
const unsigned int index = (*it)->header()->pageSequenceNumber();
if(index < d->pages.size()) {
delete d->pages[index];
d->pages[index] = *it;
}