Skip to content

Commit

Permalink
Merge pull request xbmc#6573 from Montellese/fix_several_warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Mar 3, 2015
2 parents a9b8c36 + ada3e90 commit b7d1690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions xbmc/addons/AddonCallbacksGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1723,10 +1723,10 @@ bool CAddonCallbacksGUI::Dialog_Keyboard_ShowAndVerifyNewPassword(char &strNewPa
int CAddonCallbacksGUI::Dialog_Keyboard_ShowAndVerifyPassword(char &strPassword, unsigned int iMaxStringSize, const char *strHeading, int iRetries, unsigned int autoCloseMs)
{
std::string str = &strPassword;
int bRet = CGUIKeyboardFactory::ShowAndVerifyNewPassword(str, strHeading, iRetries, autoCloseMs);
if (bRet)
int iRet = CGUIKeyboardFactory::ShowAndVerifyPassword(str, strHeading, iRetries, autoCloseMs);
if (iRet)
strncpy(&strPassword, str.c_str(), iMaxStringSize);
return bRet;
return iRet;
}

bool CAddonCallbacksGUI::Dialog_Keyboard_ShowAndGetFilter(char &aTextString, unsigned int iMaxStringSize, bool searching, unsigned int autoCloseMs)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/recordings/PVRRecordings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ bool CPVRRecordings::RenameRecording(CFileItem &item, std::string &strNewName)

bool CPVRRecordings::DeleteAllRecordingsFromTrash()
{
return g_PVRClients->DeleteAllRecordingsFromTrash();
return g_PVRClients->DeleteAllRecordingsFromTrash() == PVR_ERROR_NO_ERROR;
}

bool CPVRRecordings::SetRecordingsPlayCount(const CFileItemPtr &item, int count)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/utils/MathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace MathUtils
{
assert(x > static_cast<double>(INT_MIN / 2) - 1.0);
assert(x < static_cast<double>(INT_MAX / 2) + 1.0);
return x;
return static_cast<int>(x);
}

inline int64_t abs(int64_t a)
Expand Down

0 comments on commit b7d1690

Please sign in to comment.