changeset 700:5117d7cf59ec

Merge
author Chris Cannam
date Wed, 17 Aug 2011 22:14:52 +0100
parents 3b00c1650490 (diff) 1d859a5dc20e (current diff)
children 8c410ad4aa97 97fbb6b3e749 b867c07478be
files
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/QuickTimeFileReader.cpp	Wed Aug 10 11:01:30 2011 +0100
+++ b/data/fileio/QuickTimeFileReader.cpp	Wed Aug 17 22:14:52 2011 +0100
@@ -89,10 +89,12 @@
  //       (0, m_path.toLocal8Bit().data(), 0);
 
 
+    QByteArray ba = m_path.toLocal8Bit();
+
     CFURLRef url = CFURLCreateFromFileSystemRepresentation
         (kCFAllocatorDefault,
-         (const UInt8 *)m_path.toLocal8Bit().data(),
-         (CFIndex)m_path.length(),
+         (const UInt8 *)ba.data(),
+         (CFIndex)ba.length(),
          false);