Skip to content
Snippets Groups Projects
Commit beef6819 authored by Brad King's avatar Brad King
Browse files

SystemTools: Implement IsSubDirectory without loop

The loop condition "while ( path.size() > dir.size() )" assumes that
eventually path will be no longer than dir but "c:/" will always be
longer than "/" and loop forever.  Simplify the implementation to avoid
the loop and the assumption.

Change-Id: I5613c7554ebd05b12cfe4882ac3bec4ecaa6e0ae
CMake-Issue: 14283
parent f6c4c247
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment