- if ( strPath.IsEmpty() ) {
- // nothing
- }
- else if ( strPath[(size_t) 0] == wxCONFIG_PATH_SEPARATOR ) {
- // absolute path
- wxSplitPath(aParts, strPath);
- }
- else {
- // relative path, combine with current one
- wxString strFullPath = GetPath();
- strFullPath << wxCONFIG_PATH_SEPARATOR << strPath;
- wxSplitPath(aParts, strFullPath);
- }
+ if ( strPath.empty() )
+ {
+ // nothing
+ }
+ else if ( strPath[(size_t) 0] == wxCONFIG_PATH_SEPARATOR )
+ {
+ // absolute path
+ wxSplitPath(aParts, strPath);
+ }
+ else
+ {
+ // relative path, combine with current one
+ wxString strFullPath = GetPath();
+ strFullPath << wxCONFIG_PATH_SEPARATOR << strPath;
+ wxSplitPath(aParts, strFullPath);
+ }