diff options
Diffstat (limited to 'kioslave/media')
-rw-r--r-- | kioslave/media/libmediacommon/medium.h | 2 | ||||
-rw-r--r-- | kioslave/media/mediaimpl.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kioslave/media/libmediacommon/medium.h b/kioslave/media/libmediacommon/medium.h index a4847ba80..775e7af7d 100644 --- a/kioslave/media/libmediacommon/medium.h +++ b/kioslave/media/libmediacommon/medium.h @@ -27,7 +27,7 @@ class Medium { public: - typedef TQValueList<const Medium> MList; + typedef TQValueList<Medium> MList; static const uint ID = 0; static const uint NAME = 1; diff --git a/kioslave/media/mediaimpl.cpp b/kioslave/media/mediaimpl.cpp index 5f5fa6747..1448a756c 100644 --- a/kioslave/media/mediaimpl.cpp +++ b/kioslave/media/mediaimpl.cpp @@ -140,12 +140,12 @@ bool MediaImpl::listMedia(TQValueList<KIO::UDSEntry> &list) return false; } - Medium::MList media = Medium::createList(reply); + const Medium::MList media = Medium::createList(reply); KIO::UDSEntry entry; - Medium::MList::iterator it = media.begin(); - Medium::MList::iterator end = media.end(); + Medium::MList::const_iterator it = media.begin(); + Medium::MList::const_iterator end = media.end(); for(; it!=end; ++it) { |