Permalink
Browse files

[pvr] Use method IsEmpty instead of comparison with StringUtils::Empt…

…yString to check for empty strings.
  • Loading branch information...
1 parent df6324a commit 1ab57b42eec15dd29b54ac999e6244e59d77f5a3 @axmhari committed Nov 7, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 xbmc/FileItem.cpp
  2. +2 −2 xbmc/pvr/recordings/PVRRecording.cpp
View
@@ -2929,7 +2929,7 @@ CStdString CFileItem::GetMovieName(bool bUseFolderNames /* = false */) const
if (recording->m_pvrRecordingInfoTag)
return recording->m_pvrRecordingInfoTag->m_strTitle;
CStdString title = CPVRRecording::GetTitleFromURL(m_strPath);
- if (title != StringUtils::EmptyString)
+ if (!title.IsEmpty())
return title;
}
@@ -248,9 +248,9 @@ void CPVRRecording::UpdatePath(void)
strTitle.Replace('/','-');
strTitle.Remove('?');
- if (m_strDirectory != StringUtils::EmptyString)
+ if (!m_strDirectory.IsEmpty())
strDirectory.Format("%s/", m_strDirectory.c_str());
- if (m_strChannelName != StringUtils::EmptyString)
+ if (!m_strChannelName.IsEmpty())
strChannel.Format(" (%s)", m_strChannelName.c_str());
m_strFileNameAndPath.Format("pvr://recordings/%s%s, TV%s, %s.pvr", strDirectory.c_str(), strTitle.c_str(), strChannel.c_str(), strDatetime.c_str());
}

0 comments on commit 1ab57b4

Please sign in to comment.