fixed typo
This commit is contained in:
parent
8909aeaadc
commit
ed3cf2bb54
|
@ -527,7 +527,7 @@ namespace libtorrent
|
||||||
std::pair<iter_t, bool> ret = directories.insert((m_save_path / bp).string());
|
std::pair<iter_t, bool> ret = directories.insert((m_save_path / bp).string());
|
||||||
bp = bp.branch_path();
|
bp = bp.branch_path();
|
||||||
}
|
}
|
||||||
#elif defined(_WIN32) && defined(UNICODE)
|
#if defined(_WIN32) && defined(UNICODE)
|
||||||
try
|
try
|
||||||
{ fs::remove(safe_convert(p)); }
|
{ fs::remove(safe_convert(p)); }
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
|
@ -543,7 +543,7 @@ namespace libtorrent
|
||||||
error_file = p;
|
error_file = p;
|
||||||
result = errno;
|
result = errno;
|
||||||
}
|
}
|
||||||
#else
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the directories. Reverse order to delete
|
// remove the directories. Reverse order to delete
|
||||||
|
@ -552,7 +552,7 @@ namespace libtorrent
|
||||||
for (std::set<std::string>::reverse_iterator i = directories.rbegin()
|
for (std::set<std::string>::reverse_iterator i = directories.rbegin()
|
||||||
, end(directories.rend()); i != end; ++i)
|
, end(directories.rend()); i != end; ++i)
|
||||||
{
|
{
|
||||||
#elif defined(_WIN32) && defined(UNICODE)
|
#if defined(_WIN32) && defined(UNICODE)
|
||||||
try
|
try
|
||||||
{ fs::remove(safe_convert(*i)); }
|
{ fs::remove(safe_convert(*i)); }
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
|
@ -568,7 +568,7 @@ namespace libtorrent
|
||||||
error_file = *i;
|
error_file = *i;
|
||||||
result = errno;
|
result = errno;
|
||||||
}
|
}
|
||||||
#else
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!error.empty())
|
if (!error.empty())
|
||||||
|
|
Loading…
Reference in New Issue