summaryrefslogtreecommitdiff
path: root/src/lyrics.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-08-28 07:12:31 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-08-28 07:12:31 +0200
commitb910ce38be0a2ad2eb06d0399c6308b328d1e258 (patch)
tree5dc475c45ce8f5d717834ec7cd3ab1c40d256784 /src/lyrics.cpp
parenta20a1952250905be67c1d99d9d345c18decb398e (diff)
restrict conversions being done in strbuffer
Diffstat (limited to 'src/lyrics.cpp')
-rw-r--r--src/lyrics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lyrics.cpp b/src/lyrics.cpp
index d5b993c7..a55aa5f4 100644
--- a/src/lyrics.cpp
+++ b/src/lyrics.cpp
@@ -249,10 +249,10 @@ void *Lyrics::Download()
bool fetcher_defined = itsFetcher && *itsFetcher;
for (LyricsFetcher **plugin = fetcher_defined ? itsFetcher : lyricsPlugins; *plugin != 0; ++plugin)
{
- *w << "Fetching lyrics from " << fmtBold << (*plugin)->name() << fmtBoldEnd << "... ";
+ *w << U("Fetching lyrics from ") << fmtBold << TO_WSTRING((*plugin)->name()) << fmtBoldEnd << U("... ");
result = (*plugin)->fetch(artist, title);
if (result.first == false)
- *w << clRed << result.second << clEnd << "\n";
+ *w << clRed << TO_WSTRING(result.second) << clEnd << '\n';
else
break;
if (fetcher_defined)
@@ -268,7 +268,7 @@ void *Lyrics::Download()
*w << result.second;
}
else
- *w << "\nLyrics weren't found.";
+ *w << '\n' << U("Lyrics weren't found.");
isReadyToTake = 1;
pthread_exit(0);
@@ -338,7 +338,7 @@ void Lyrics::Load()
while (getline(input, line))
{
if (!first)
- *w << "\n";
+ *w << '\n';
utf_to_locale(line);
*w << line;
first = 0;
@@ -353,7 +353,7 @@ void Lyrics::Load()
pthread_create(&itsDownloader, 0, DownloadWrapper, this);
isDownloadInProgress = 1;
# else
- *w << "Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into " << Config.lyrics_directory << " directory (file syntax is \"$ARTIST - $TITLE.txt\") or recompile ncmpcpp with curl support.";
+ *w << U("Local lyrics not found. As ncmpcpp has been compiled without curl support, you can put appropriate lyrics into ") << TO_WSTRING(Config.lyrics_directory) << U(" directory (file syntax is \"$ARTIST - $TITLE.txt\") or recompile ncmpcpp with curl support.");
w->Flush();
# endif
}