Filesystem abstraction prototype - Path fixes

This commit is contained in:
Emmanuel BENOîT 2017-12-27 10:12:13 +01:00
parent 124b95db69
commit 2d3f98aba1

View file

@ -312,7 +312,7 @@ T_FSPath T_FSPath::makeRelative(
T_FSPath np;
const T_String parent{ T_String::Pooled( ".." ) };
for ( auto i = nca ; i > nCommon ; i -- ) {
for ( auto i = ncb ; i > nCommon ; i -- ) {
np.components_.add( parent );
}
for ( auto i = nCommon ; i < nca ; i ++ ) {
@ -335,7 +335,7 @@ bool T_FSPath::isCanonical( ) const noexcept
return false;
}
}
return nc > 0;
return true;
}
T_FSPath T_FSPath::canonical( ) const noexcept