quell clang warning: don't use strFileName twice.
authorArne Morten Kvarving <cptspiff@gmail.com>
Mon, 14 Jul 2014 11:38:02 +0000 (13:38 +0200)
committerJonathan Marshall <jmarshall@xbmc.org>
Mon, 14 Jul 2014 20:28:00 +0000 (08:28 +1200)
xbmc/playlists/PlayListWPL.cpp

index 4426048..1590814 100644 (file)
@@ -93,11 +93,11 @@ bool CPlayListWPL::LoadData(istream& stream)
     std::string strFileName = XMLUtils::GetAttribute(pMediaElement, "src");
     if (!strFileName.empty())
     {
-      std::string strFileName = URIUtils::SubstitutePath(strFileName);
-      CUtil::GetQualifiedFilename(m_strBasePath, strFileName);
-      std::string strDescription = URIUtils::GetFileName(strFileName);
+      std::string strFileNameClean = URIUtils::SubstitutePath(strFileName);
+      CUtil::GetQualifiedFilename(m_strBasePath, strFileNameClean);
+      std::string strDescription = URIUtils::GetFileName(strFileNameClean);
       CFileItemPtr newItem(new CFileItem(strDescription));
-      newItem->SetPath(strFileName);
+      newItem->SetPath(strFileNameClean);
       Add(newItem);
     }
     pMediaElement = pMediaElement->NextSiblingElement();