make str_pool return const char * instead of char *

This commit is contained in:
Andrzej Rybczak
2009-07-10 14:44:20 +02:00
parent d8b8d4aeda
commit 209f5337ee
6 changed files with 32 additions and 32 deletions

View File

@@ -494,7 +494,7 @@ void MPD::Song::SetHashAndSlash()
{
if (!itsSong->file)
return;
char *tmp = strrchr(itsSong->file, '/');
const char *tmp = strrchr(itsSong->file, '/');
itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos;
itsHash = calc_hash(itsSong->file);
}