git-svn-id: svn://db.shs.com.ru/pip@556 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -72,13 +72,11 @@ bool PIDir::operator ==(const PIDir & d) const {
|
||||
|
||||
bool PIDir::isAbsolute() const {
|
||||
if (path_.isEmpty()) return false;
|
||||
/*#ifdef WINDOWS
|
||||
if (path_.size_s() < 2) return false;
|
||||
return (path_.mid(1, 2).contains(":"));
|
||||
#else
|
||||
return (path_[0] == separator);
|
||||
#endif*/
|
||||
return (path_[0] == separator);
|
||||
if (path_[0] == separator) return true;
|
||||
#ifdef WINDOWS
|
||||
return (path_.mid(1, 1) == ":");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user