From: Shane King Date: Tue, 12 Feb 2008 06:06:17 +0000 (+0000) Subject: WIN32 compile fix. X-Git-Tag: v1.5~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b2f47ff911221bb861d485d4b0939f401e6b022;p=taglib WIN32 compile fix. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@773935 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/taglib/fileref.cpp b/taglib/fileref.cpp index 8682b55a..eee62f2c 100644 --- a/taglib/fileref.cpp +++ b/taglib/fileref.cpp @@ -171,7 +171,7 @@ File *FileRef::create(FileName fileName, bool readAudioProperties, String s; #ifdef _WIN32 - s = (wcslen((const wchar_t *) fileName) > 0) ? (const wchar_t) fileName : (const char *) fileName; + s = (wcslen((const wchar_t *) fileName) > 0) ? String((const wchar_t *) fileName) : String((const char *) fileName); #else s = fileName; #endif