Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build for Windows UWP #69

Merged
merged 2 commits into from
Nov 12, 2017
Merged

fix build for Windows UWP #69

merged 2 commits into from
Nov 12, 2017

Conversation

Rechi
Copy link
Contributor

@Rechi Rechi commented Nov 11, 2017

No description provided.

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the changelog and do an addon version bump.

while (true)
{
subend = search(substart, s.end(), delim.begin(), delim.end());
CStdString temp(substart, subend);
std::string temp(substart, subend);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

CStdString pinMD5 = PVRXBMC::XBMC_MD5::GetMD5(g_szPin);
pinMD5.ToLower();
std::string pinMD5 = PVRXBMC::XBMC_MD5::GetMD5(g_szPin);
StringUtils::ToLower(pinMD5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.


// calculate combined MD5
CStdString combinedMD5;
std::string combinedMD5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.

combinedMD5.append(":");
combinedMD5.append(pinMD5);
combinedMD5.append(":");
combinedMD5.append(salt);

// get digest
CStdString md5 = PVRXBMC::XBMC_MD5::GetMD5(combinedMD5);
std::string md5 = PVRXBMC::XBMC_MD5::GetMD5(combinedMD5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation. ;-)


// login session
CStdString loginResponse;
std::string loginResponse;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dto

{
// check server version
CStdString settings;
std::string settings;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, indentation

@@ -1078,13 +1081,13 @@ int cPVRClientNextPVR::GetNumTimers(void)

PVR_ERROR cPVRClientNextPVR::GetTimers(ADDON_HANDLE handle)
{
CStdString response;
std::string response;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

@@ -38,6 +39,8 @@
#define MAXINT64 ULONG_MAX
#endif

#include <algorithm>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what do you need this header?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subend = search(substart, s.end(), delim.begin(), delim.end());

algorithm was included by p8-platform/util/StdString.h

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate people putting "using namespace std;" into sources. :-/

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@ksooo ksooo merged commit 938bb48 into kodi-pvr:master Nov 12, 2017
@Rechi Rechi deleted the fixWindowsUwp branch November 12, 2017 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants