}
auto pwchar = td->lf.lfFaceName[0] != '\0' ? td->lf.lfFaceName : _(L"MS ゴシック", L"Courier");
- WritePrivateProfileStringA(sec_name, "Font", to_multibyte(pwchar).data(), ini_file);
+ WritePrivateProfileStringA(sec_name, "Font", to_multibyte(pwchar).c_str(), ini_file);
wsprintfA(buf, "%d", td->lf.lfWidth);
WritePrivateProfileStringA(sec_name, "FontWid", buf, ini_file);
term_no_press = false;
} else {
WCHAR wc[2] = { (WCHAR)wParam, '\0' };
- term_keypress(to_multibyte(wc).data());
+ term_keypress(to_multibyte(wc).c_str());
}
return 0;
}
term_no_press = false;
} else {
WCHAR wc[2] = { (WCHAR)wParam, '\0' };
- term_keypress(to_multibyte(wc).data());
+ term_keypress(to_multibyte(wc).c_str());
}
return 0;
}
if (argv[i][0] != L'-') {
// "-"で始まらない最初のオプションをセーブファイル名とみなす
if (savefile_option.empty()) {
- savefile_option = to_multibyte(argv[i]).data();
+ savefile_option = to_multibyte(argv[i]).c_str();
}
}
}
ofnw.Flags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;
if (GetSaveFileNameW(&ofnw)) {
- do_cmd_save_screen_html_aux(to_multibyte(&buf[0]).data(), 0);
+ do_cmd_save_screen_html_aux(to_multibyte(&buf[0]).c_str(), 0);
}
}
// call API
if (GetOpenFileNameW(ofn)) {
// to multibyte
- strncpy_s(filename, max_name_size, to_multibyte(&buf[0]).data(), _TRUNCATE);
+ strncpy_s(filename, max_name_size, to_multibyte(&buf[0]).c_str(), _TRUNCATE);
return true;
}