summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-06-10 10:08:46 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-06-10 10:09:37 (GMT)
commitefa2b7e98dda8525f42f71b15847699e1c7829ca (patch)
tree1edfca00489a6f40c1f4042012e358b02edae855 /src
parentd0823a0113253cf52859e84f41db82e96b80331e (diff)
downloadQt-efa2b7e98dda8525f42f71b15847699e1c7829ca.zip
Qt-efa2b7e98dda8525f42f71b15847699e1c7829ca.tar.gz
Qt-efa2b7e98dda8525f42f71b15847699e1c7829ca.tar.bz2
Fix compile error on Tiger
the "for-in" syntax is only available on 10.5+ Reviewed-by: MortenS
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/phonon/qt7/quicktimevideoplayer.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/qt7/quicktimevideoplayer.mm b/src/3rdparty/phonon/qt7/quicktimevideoplayer.mm
index 93867e2..02a594b 100644
--- a/src/3rdparty/phonon/qt7/quicktimevideoplayer.mm
+++ b/src/3rdparty/phonon/qt7/quicktimevideoplayer.mm
@@ -1041,7 +1041,8 @@ NSString* QuickTimeVideoPlayer::pathToCompactDisc()
{
PhononAutoReleasePool pool;
NSArray *devices = [[NSWorkspace sharedWorkspace] mountedRemovableMedia];
- for (NSString *dev in devices) {
+ for (unsigned int i=0; i<[devices count]; ++i) {
+ NSString *dev = [devices objectAtIndex:i];
if (isCompactDisc(dev))
return [dev retain];
}