Skip to content

Commit

Permalink
fix typo from overzealous renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed May 10, 2012
1 parent 9dda396 commit b42245f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions xbmc/FileItem.cpp
Expand Up @@ -2296,7 +2296,7 @@ void CFileItemList::StackFiles()
bool CFileItemList::Load(int windowID)
{
CFile file;
if (file.Open(GetDisCFileCache(windowID)))
if (file.Open(GetDiscFileCache(windowID)))
{
CLog::Log(LOGDEBUG,"Loading fileitems [%s]",GetPath().c_str());
CArchive ar(&file, CArchive::load);
Expand All @@ -2319,7 +2319,7 @@ bool CFileItemList::Save(int windowID)
CLog::Log(LOGDEBUG,"Saving fileitems [%s]",GetPath().c_str());

CFile file;
if (file.OpenForWrite(GetDisCFileCache(windowID), true)) // overwrite always
if (file.OpenForWrite(GetDiscFileCache(windowID), true)) // overwrite always
{
CArchive ar(&file, CArchive::store);
ar << *this;
Expand All @@ -2334,15 +2334,15 @@ bool CFileItemList::Save(int windowID)

void CFileItemList::RemoveDiscCache(int windowID) const
{
CStdString cacheFile(GetDisCFileCache(windowID));
CStdString cacheFile(GetDiscFileCache(windowID));
if (CFile::Exists(cacheFile))
{
CLog::Log(LOGDEBUG,"Clearing cached fileitems [%s]",GetPath().c_str());
CFile::Delete(cacheFile);
}
}

CStdString CFileItemList::GetDisCFileCache(int windowID) const
CStdString CFileItemList::GetDiscFileCache(int windowID) const
{
CStdString strPath(GetPath());
URIUtils::RemoveSlashAtEnd(strPath);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/FileItem.h
Expand Up @@ -492,7 +492,7 @@ class CFileItemList : public CFileItem
private:
void Sort(FILEITEMLISTCOMPARISONFUNC func);
void FillSortFields(FILEITEMFILLFUNC func);
CStdString GetDisCFileCache(int windowID) const;
CStdString GetDiscFileCache(int windowID) const;

/*!
\brief stack files in a CFileItemList
Expand Down

0 comments on commit b42245f

Please sign in to comment.