diff options
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index c8030547..4bd72b90 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -119,10 +119,10 @@ void Browser::SwitchTo() DrawHeader(); } -std::basic_string<my_char_t> Browser::Title() +std::wstring Browser::Title() { - std::basic_string<my_char_t> result = U("Browse: "); - result += Scroller(TO_WSTRING(itsBrowsedDir), itsScrollBeginning, COLS-result.length()-(Config.new_design ? 2 : Global::VolumeState.length())); + std::wstring result = L"Browse: "; + result += Scroller(ToWString(itsBrowsedDir), itsScrollBeginning, COLS-result.length()-(Config.new_design ? 2 : Global::VolumeState.length())); return result; } @@ -550,12 +550,12 @@ void Browser::ClearDirectory(const std::string &path) const if (remove(full_path.c_str()) == 0) { const char msg[] = "Deleting \"%s\"..."; - ShowMessage(msg, Shorten(TO_WSTRING(full_path), COLS-const_strlen(msg)).c_str()); + ShowMessage(msg, Shorten(ToWString(full_path), COLS-const_strlen(msg)).c_str()); } else { const char msg[] = "Couldn't remove \"%s\": %s"; - ShowMessage(msg, Shorten(TO_WSTRING(full_path), COLS-const_strlen(msg)-25).c_str(), strerror(errno)); + ShowMessage(msg, Shorten(ToWString(full_path), COLS-const_strlen(msg)-25).c_str(), strerror(errno)); } } closedir(dir); |