From 9d449caf843f16786c0f897680dace4a47bfed73 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 30 Oct 2009 03:32:24 +0000 Subject: [PATCH] msvc fix --- src/file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index 112cbc4c1..f24c4da16 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -307,7 +307,7 @@ namespace libtorrent void replace_extension(std::string& f, std::string const& ext) { - char* e = strrchr(f.c_str(), '.'); + char const* e = strrchr(f.c_str(), '.'); if (e == 0) f += '.'; else f.resize(e - f.c_str() + 1); f += ext; @@ -380,9 +380,9 @@ namespace libtorrent std::string filename(std::string const& f) { - char* sep = strrchr(f.c_str(), '/'); + char const* sep = strrchr(f.c_str(), '/'); #ifdef TORRENT_WINDOWS - char* altsep = strrchr(f.c_str(), '\\'); + char const* altsep = strrchr(f.c_str(), '\\'); if (sep == 0 || altsep > sep) sep = altsep; #endif if (sep == 0) return f;