qt: Replace plat_path_abs with the ones from Unix and Win32 backends
This commit is contained in:
@@ -224,8 +224,14 @@ plat_get_filename(char *s)
|
|||||||
int
|
int
|
||||||
plat_path_abs(char *path)
|
plat_path_abs(char *path)
|
||||||
{
|
{
|
||||||
QFileInfo fi(path);
|
#ifdef Q_OS_WINDOWS
|
||||||
return fi.isAbsolute() ? 1 : 0;
|
if ((path[1] == ':') || (path[0] == '\\') || (path[0] == '/'))
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
return path[0] == '/';
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user