From ed3cf2bb5476bb49ebe82646a84bf089488f3b57 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 15 May 2008 16:57:35 +0000 Subject: [PATCH] fixed typo --- src/storage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storage.cpp b/src/storage.cpp index 9c5bd4472..e86d3d58d 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -527,7 +527,7 @@ namespace libtorrent std::pair ret = directories.insert((m_save_path / bp).string()); bp = bp.branch_path(); } -#elif defined(_WIN32) && defined(UNICODE) +#if defined(_WIN32) && defined(UNICODE) try { fs::remove(safe_convert(p)); } catch (std::exception& e) @@ -543,7 +543,7 @@ namespace libtorrent error_file = p; result = errno; } -#else +#endif } // remove the directories. Reverse order to delete @@ -552,7 +552,7 @@ namespace libtorrent for (std::set::reverse_iterator i = directories.rbegin() , end(directories.rend()); i != end; ++i) { -#elif defined(_WIN32) && defined(UNICODE) +#if defined(_WIN32) && defined(UNICODE) try { fs::remove(safe_convert(*i)); } catch (std::exception& e) @@ -568,7 +568,7 @@ namespace libtorrent error_file = *i; result = errno; } -#else +#endif } if (!error.empty())