Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[filesystem] fix cosmetics after xbmc#13725
  • Loading branch information
afedchin authored and pkerling committed Apr 7, 2018
1 parent 363475b commit 2b85ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xbmc/filesystem/Directory.cpp
Expand Up @@ -216,12 +216,12 @@ bool CDirectory::GetDirectory(const CURL& url, CFileItemList &items, const CHint
if (CPasswordManager::GetInstance().IsURLSupported(realURL))
{
bool hide = false;
// for explicitly credetials
// for explicitly credentials
if (!realURL.GetUserName().empty())
{
// credentials was changed i.e. were stored in the password
// manager, in this case we can hide them from an item URL,
// otherwise we have to keep cretendials in an item URL
// otherwise we have to keep credentials in an item URL
if ( realURL.GetUserName() != authUrl.GetUserName()
|| realURL.GetPassWord() != authUrl.GetPassWord()
|| realURL.GetDomain() != authUrl.GetDomain())
Expand Down
2 changes: 1 addition & 1 deletion xbmc/filesystem/SMBFile.cpp
Expand Up @@ -243,7 +243,7 @@ std::string CSMB::URLEncode(const CURL &url)
/* probably the url parser that goes crazy */
if(url.GetUserName().length() > 0 /* || url.GetPassWord().length() > 0 */)
{
if(url.GetDomain().length() > 0)
if(!url.GetDomain().empty())
{
flat += URLEncode(url.GetDomain());
flat += ";";
Expand Down

0 comments on commit 2b85ef7

Please sign in to comment.