trivial rename

This commit is contained in:
David Rose 2009-10-06 20:58:10 +00:00
parent 5ea8a8c869
commit 712797797e

View File

@ -2405,6 +2405,12 @@ unlink() const {
bool Filename::
rename_to(const Filename &other) const {
assert(!get_pattern());
if (*this == other) {
// Trivial success.
return true;
}
string os_specific = to_os_specific();
string other_os_specific = other.to_os_specific();