Skip to content

Commit

Permalink
[pvr] Use method IsEmpty instead of comparison with StringUtils::Empt…
Browse files Browse the repository at this point in the history
…yString to check for empty strings.
  • Loading branch information
axmhari committed Nov 7, 2012
1 parent df6324a commit 1ab57b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xbmc/FileItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions xbmc/pvr/recordings/PVRRecording.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 1ab57b4

Please sign in to comment.