wchar_t ** envp = 0;
int newmode = 0;
__wgetmainargs(&argc_, &argv_, &envp, -1, &newmode);
- LASSERT(argc == argc_, /**/);
+ LATTEST(argc == argc_);
// If Cygwin is detected, query the cygdrive prefix.
// The cygdrive prefix is needed for translating windows style paths
string utf8_argv(int i)
{
- LASSERT(i < argc_, /**/);
+ LASSERT(i < argc_, return "");
return fromqstr(QString::fromWCharArray(argv_[i]));
}
long_path.resize(result);
result = GetLongPathNameW((wchar_t *) short_path.utf16(),
&long_path[0], long_path.size());
- LASSERT(result <= long_path.size(), /**/);
+ LATTEST(result <= long_path.size());
}
return (result == 0) ? short_path : QString::fromWCharArray(&long_path[0]);
short_path.resize(result);
result = GetShortPathNameW((wchar_t *) long_path.utf16(),
&short_path[0], short_path.size());
- LASSERT(result <= short_path.size(), /**/);
+ LATTEST(result <= short_path.size());
}
return (result == 0) ? long_path : QString::fromWCharArray(&short_path[0]);
}
-int timeout_min()
-{
- return 30;
-}
-
-
char path_separator(path_type type)
{
if (type == TEXENGINE)
id = CSIDL_APPDATA;
break;
default:
- LASSERT(false, /**/);
+ LASSERT(false, return string());
}
HRESULT const result = (folder_path_func_)(0, id, 0,
SHGFP_TYPE_CURRENT,