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

cppcheck performance fixes in filesystem/ #6123

Merged
merged 1 commit into from
Jan 8, 2015

Conversation

tobbi
Copy link
Contributor

@tobbi tobbi commented Jan 6, 2015

This is mostly iterator pre/ postfix fixes, but also removing string initializations and moving things to initializer list.

CMythSession::CMythSession(const CURL& url) : CThread("MythSession"):
m_hostname(url.GetHostName()),
m_username(url.GetUserName() == "" ? MYTH_DEFAULT_USERNAME : url.GetUserName()),
m_password(url.GetPassWord() == "" ? MYTH_DEFAULT_PASSWORD : url.GetPassWord())

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@ace20022
Copy link
Member

ace20022 commented Jan 6, 2015

Rebase needed.

@tobbi
Copy link
Contributor Author

tobbi commented Jan 7, 2015

Done rebasing.

@ace20022
Copy link
Member

ace20022 commented Jan 7, 2015

jenkins build this please

@tobbi
Copy link
Contributor Author

tobbi commented Jan 7, 2015

Jenkins build seems to be failing. And I think I know why. Gonna update the PR soon.

@tobbi
Copy link
Contributor Author

tobbi commented Jan 7, 2015

jenkins build this please

1 similar comment
@kib
Copy link
Member

kib commented Jan 7, 2015

jenkins build this please

@tobbi
Copy link
Contributor Author

tobbi commented Jan 8, 2015

Okay, the failed jenkins build were for the previous update.

MythSession.cpp: In constructor 'XFILE::CMythSession::CMythSession(const CURL&)':
MythSession.cpp:361:69: error: expected '{' before ':' token
MythSession.cpp: At global scope:
MythSession.cpp:361:69: error: expected unqualified-id before ':' token
make[1]: *** [MythSession.o] Error 1
make: *** [xbmc/filesystem/filesystem.a] Error 2

I think I fixed that already.

@@ -36,7 +36,7 @@ namespace XFILE
virtual bool AllowAll() const { return true; }
virtual DIR_CACHE_TYPE GetCacheType(const CURL& url) const { return DIR_CACHE_ALWAYS; };
private:
bool GetRootAndChildString(const std::string strPath, std::string& strBQRequest, std::string& strXMLRootString, std::string& strXMLChildString );
bool GetRootAndChildString(const std::string& strPath, std::string& strBQRequest, std::string& strXMLRootString, std::string& strXMLChildString );

This comment was marked as spam.

This comment was marked as spam.

@ace20022
Copy link
Member

ace20022 commented Jan 8, 2015

jenkins build this please

@ace20022
Copy link
Member

ace20022 commented Jan 8, 2015

and again:

jenkins build this please

ace20022 added a commit that referenced this pull request Jan 8, 2015
cppcheck performance fixes in filesystem/
@ace20022 ace20022 merged commit dc4d753 into xbmc:master Jan 8, 2015
@tobbi tobbi deleted the cppcheck_perf_filesystem branch January 8, 2015 18:33
@MartijnKaijser MartijnKaijser modified the milestone: Helix 15.0-alpha1 Jan 10, 2015
phil65 pushed a commit to phil65/xbmc that referenced this pull request Jan 10, 2015
cppcheck performance fixes in filesystem/
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.

None yet

4 participants