* @param [in] wLangId Language ID.
* @return Language filename, or empty string if no file for language found.
*/
- String CLanguageSelect::GetFileName(LANGID wLangId)
+ String CLanguageSelect::GetFileName(LANGID wLangId) const
{
String filename;
- String path = env_GetProgPath().append(szRelativePath);
- String pattern = path + _T("*.po");
+ String path = paths_ConcatPath(env_GetProgPath(), szRelativePath);
+ String pattern = paths_ConcatPath(path, _T("*.po"));
WIN32_FIND_DATA ff;
HANDLE h = INVALID_HANDLE_VALUE;
while ((h = FindFile(h, pattern.c_str(), &ff)) != INVALID_HANDLE_VALUE)
bool ListShellContextMenu(SIDE_TYPE side);
CShellContextMenu* GetCorrespondingShellContextMenu(HMENU hMenu) const;
void ReloadColumns();
- bool IsLabelEdit();
- void ResetColumnWidths();
+ bool IsLabelEdit() const;
- bool IsItemSelectedSpecial() const;
void CollapseSubdir(int sel);
void ExpandSubdir(int sel, bool bRecursive = false);
void GetColors(int nRow, int nCol, COLORREF& clrBk, COLORREF& clrText) const;
* @brief Get default editor path.
* @return full path to the editor program executable.
*/
- String CMergeApp::GetDefaultEditor()
+ String CMergeApp::GetDefaultEditor() const
{
- String path = env_GetWindowsDirectory();
- path += _T("\\NOTEPAD.EXE");
- return path;
+ return paths_ConcatPath(env_GetWindowsDirectory(), _T("NOTEPAD.EXE"));
}
/**