aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/lyric_word.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-28 11:32:39 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:46 +0100
commit271c7cabf5e16a1afed560b9f707b3955b3ec725 (patch)
tree026b6678c6973205e32698af795830d58c5121d6 /src/base/lyric_word.cpp
parent2adaea29500b412c342838e22df2f8b4ac2eb02d (diff)
downloadusdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.tar.gz
usdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.tar.xz
usdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.zip
converted all strings and chars to wstrings and wchar_ts
all strings with displayable content are now the wide strings for proper unicode handling added boost dependency for proper reading unicode from files
Diffstat (limited to 'src/base/lyric_word.cpp')
-rw-r--r--src/base/lyric_word.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/lyric_word.cpp b/src/base/lyric_word.cpp
index c6c5d7d9..979d02a9 100644
--- a/src/base/lyric_word.cpp
+++ b/src/base/lyric_word.cpp
@@ -28,20 +28,20 @@
namespace usdx
{
- LyricWord::LyricWord(const char type,
+ LyricWord::LyricWord(const wchar_t type,
const int beat,
const int length,
const int height,
- const std::string& lyric) :
+ const std::wstring& lyric) :
beat(beat), length(length), height(height), text(lyric)
{
- if (type == ':') {
+ if (type == L':') {
this->type = nt_normal;
}
- else if (type == '*') {
+ else if (type == L'*') {
this->type = nt_golden;
}
- else if (type == 'F') {
+ else if (type == L'F') {
this->type = nt_freestyle;
}
}