\r
wxString inline myMakeXMLName(const wxString & szFile)\r
{\r
- wxStandardPaths p;\r
- return wxPathOnly(p.GetExecutablePath()) + wxT("/lib/") + szFile + wxT(".xml");\r
+ return wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + wxT("/lib/") + szFile + wxT(".xml");\r
}\r
// 作業ディレクトリ作成。\r
swInfo.fStoreDirectoryPathes = false;\r
wxString szDestDirBase = nMode == 3 ? this->tree_ctrl->GetItemText(this->tree_ctrl->GetSelection()) : wxT("tpi_tmp");\r
- wxStandardPaths p;\r
if (szDestDirBase == wxT("-----"))\r
{\r
// 書庫ルートのときは書庫名にしておく。\r
szDestDirBase = this->fnArchive.GetName();\r
}\r
- swInfo.fnDestinationDirectory = MakeDirPath(wxFileName::DirName(p.GetTempDir()), szDestDirBase, true);\r
+ swInfo.fnDestinationDirectory = MakeDirPath(wxFileName::DirName(wxStandardPaths::Get().GetTempDir()), szDestDirBase, true);\r
if (! swInfo.fnDestinationDirectory.IsOk())\r
{\r
wxLogError(_("Unable to make the temporary directory!"));\r
{\r
wxChar cSep = wxFileName::GetPathSeparator();\r
szCwd = ::wxGetCwd() + cSep;\r
- wxStandardPaths p;\r
- ::wxSetWorkingDirectory(::wxPathOnly(p.GetExecutablePath()) + cSep);\r
+ ::wxSetWorkingDirectory(::wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + cSep);\r
}\r
\r
// 言語ファイルのパスを指定。\r
}\r
hFile.Close();\r
\r
- wxStandardPaths p;\r
- wxString szSPIPath = wxPathOnly(p.GetExecutablePath()) + wxT("/lib/"), szSPIName;\r
+ wxString szSPIPath = wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + wxT("/lib/"), szSPIName;\r
wxDir fs(szSPIPath);\r
if (fs.GetFirst(& szSPIName, wxT("*.spi")))\r
{\r
}\r
hFile.Close();\r
\r
- wxStandardPaths p;\r
- wxString szSPIPath = wxPathOnly(p.GetExecutablePath()) + wxT("/lib/"), szSPIName;\r
+ wxString szSPIPath = wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + wxT("/lib/"), szSPIName;\r
wxDir fs(szSPIPath);\r
if (fs.GetFirst(& szSPIName, wxT("*.spi")))\r
{\r
static wxDir fs;\r
if (_bFirst)\r
{\r
- wxStandardPaths p;\r
- szXPIPath = wxPathOnly(p.GetExecutablePath()) + wxT("/lib/");\r
+ szXPIPath = wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + wxT("/lib/");\r
fs.Open(szXPIPath);\r
\r
// 画像の情報を取得。\r
return nErrorCode;\r
}\r
\r
- wxString szXPIPath;\r
- {\r
- wxStandardPaths p;\r
- szXPIPath = wxPathOnly(p.GetExecutablePath()) + wxT("/lib/");\r
- }\r
-\r
+ wxString szXPIPath = wxPathOnly(wxStandardPaths::Get().GetExecutablePath()) + wxT("/lib/");\r
for (size_t i = 0; i < _asFiles.GetCount(); i++)\r
{\r
// 処理を行うか確認。\r