summary refs log tree commit diff stats
path: root/src/fe-gtk/notifications/notification-winrt.cpp
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2016-06-21 07:39:50 -0700
committerArnavion <arnavion@gmail.com>2016-06-21 07:39:50 -0700
commita1d2272dc08adea28601994fd8366f1ddc6232d8 (patch)
treef83ca006cbaa1084bde5475ed6bbf3492218e6ff /src/fe-gtk/notifications/notification-winrt.cpp
parentc12f33aa4c0871174c0a035e46fa2e3c75822dc4 (diff)
notifications-winrt: Fix all uses of "" to L"".
The API uses Platform::String^. String's constructor takes in char16*.

Fixes #1755
Diffstat (limited to 'src/fe-gtk/notifications/notification-winrt.cpp')
-rw-r--r--src/fe-gtk/notifications/notification-winrt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fe-gtk/notifications/notification-winrt.cpp b/src/fe-gtk/notifications/notification-winrt.cpp
index 663f9c08..338214ee 100644
--- a/src/fe-gtk/notifications/notification-winrt.cpp
+++ b/src/fe-gtk/notifications/notification-winrt.cpp
@@ -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;