/*
* Copyright (C) 2005-2013 Team XBMC
- * http://www.xbmc.org
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "URL.h"
#include "filesystem/MultiPathDirectory.h"
#include "utils/URIUtils.h"
+#include "utils/StringUtils.h"
using namespace std;
using namespace XFILE;
vecPaths = paths;
if (paths.size() == 0)
{ // no paths - return
- strPath.Empty();
+ strPath.clear();
}
else if (paths.size() == 1)
{ // only one valid path? make it the strPath
if (URIUtils::IsMultiPath(strPath))
m_iDriveType = SOURCE_TYPE_VPATH;
- else if (strPath.Left(4).Equals("udf:"))
+ else if (StringUtils::StartsWithNoCase(strPath, "udf:"))
{
m_iDriveType = SOURCE_TYPE_VIRTUAL_DVD;
strPath = "D:\\";