}
UINT mbType = MB_OK;
- WCharVec wMsg(convertUtf8ToWString(fullMsg)),
+ std::wstring wMsg(convertUtf8ToWString(fullMsg)),
wCap(convertUtf8ToWString(caption));
- wMsg.push_back(0);
- wCap.push_back(0);
- ::MessageBoxExW(ownerWindow, wMsg.data(), wCap.data(),
+ ::MessageBoxExW(ownerWindow, wMsg.c_str(), wCap.c_str(),
mbType, 0 /* system lang */);
return flightgear::MSG_BOX_OK;
}
if (validatePath(path) && validateVersion(path)) {
- return path.toStdString();
+ return SGPath::fromUtf8(path.toStdString());
} else {
// we have an existing path but it's invalid. Let's ask the
// user what they want
bool SetupRootDialog::validateVersion(QString path)
{
- std::string ver = fgBasePackageVersion(SGPath(path.toStdString()));
+ std::string ver = fgBasePackageVersion(SGPath::fromUtf8(path.toStdString()));
return (ver == FLIGHTGEAR_VERSION);
}