notifications-winrt: Fix all uses of "" to L"".

The API uses Platform::String^. String's constructor takes in char16*.

Fixes #1755
This commit is contained in:
Arnavion 2016-06-21 07:39:50 -07:00
parent c12f33aa4c
commit a1d2272dc0
1 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ extern "C"
try
{
auto toastTemplate = ToastNotificationManager::GetTemplateContent (ToastTemplateType::ToastText02);
auto node_list = toastTemplate->GetElementsByTagName ("text");
auto node_list = toastTemplate->GetElementsByTagName (L"text");
UINT node_count = node_list->Length;
auto wtitle = widen (title);
@ -58,9 +58,9 @@ extern "C"
toastTemplate->CreateTextNode (Platform::StringReference (wtext.c_str (), wtext.size ())));
// Mute sound, we already play our own
auto node = toastTemplate->SelectSingleNode ("/toast");
auto audio_elem = toastTemplate->CreateElement ("audio");
audio_elem->SetAttribute ("silent", "true");
auto node = toastTemplate->SelectSingleNode (L"/toast");
auto audio_elem = toastTemplate->CreateElement (L"audio");
audio_elem->SetAttribute (L"silent", L"true");
static_cast<XmlElement^>(node)->AppendChild (audio_elem);
notifier->Show (ref new ToastNotification (toastTemplate));
@ -77,7 +77,7 @@ extern "C"
notification_backend_init (void)
{
if (!notifier)
notifier = ToastNotificationManager::CreateToastNotifier ("HexChat.Desktop.Notify");
notifier = ToastNotificationManager::CreateToastNotifier (L"HexChat.Desktop.Notify");
if (FAILED (Windows::Foundation::Initialize (RO_INIT_SINGLETHREADED)))
return 0;