path: shut up cppcheck " Unusual pointer arithmetic" error

[src/path.h:252]: (error) Unusual pointer arithmetic
This commit is contained in:
riccardom 2011-11-13 17:40:12 +00:00
parent f26e86a77f
commit 598baf257f
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ public:
if(action == GET)
{
std::string thePath = pathToCopy;
std::string relativePath = "." + DIRECTORY_DELIMITER_CHAR;
std::string relativePath = (std::string)"." + DIRECTORY_DELIMITER_CHAR;
int len = (int)thePath.size()-1;