-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
There was a problem hiding this 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.
src/pvrclient-nextpvr.cpp
Outdated
while (true) | ||
{ | ||
subend = search(substart, s.end(), delim.begin(), delim.end()); | ||
CStdString temp(substart, subend); | ||
std::string temp(substart, subend); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/pvrclient-nextpvr.cpp
Outdated
CStdString pinMD5 = PVRXBMC::XBMC_MD5::GetMD5(g_szPin); | ||
pinMD5.ToLower(); | ||
std::string pinMD5 = PVRXBMC::XBMC_MD5::GetMD5(g_szPin); | ||
StringUtils::ToLower(pinMD5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
src/pvrclient-nextpvr.cpp
Outdated
|
||
// calculate combined MD5 | ||
CStdString combinedMD5; | ||
std::string combinedMD5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
src/pvrclient-nextpvr.cpp
Outdated
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation. ;-)
src/pvrclient-nextpvr.cpp
Outdated
|
||
// login session | ||
CStdString loginResponse; | ||
std::string loginResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dto
src/pvrclient-nextpvr.cpp
Outdated
{ | ||
// check server version | ||
CStdString settings; | ||
std::string settings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, indentation
src/pvrclient-nextpvr.cpp
Outdated
@@ -1078,13 +1081,13 @@ int cPVRClientNextPVR::GetNumTimers(void) | |||
|
|||
PVR_ERROR cPVRClientNextPVR::GetTimers(ADDON_HANDLE handle) | |||
{ | |||
CStdString response; | |||
std::string response; |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pvr.nextpvr/src/pvrclient-nextpvr.cpp
Line 161 in 0df87de
subend = search(substart, s.end(), delim.begin(), delim.end()); |
algorithm
was included by p8-platform/util/StdString.h
There was a problem hiding this comment.
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. :-/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
No description provided.