View | Details | Raw Unified | Return to bug 223758 | Differences between
and this patch

Collapse All | Expand All

(-)math/saga/files/patch-src_saga__core_saga__gui_wksp__tool.cpp (+19 lines)
Line 0 Link Here
1
--- src/saga_core/saga_gui/wksp_tool.cpp.orig	2017-12-07 00:37:00.689067000 +0300
2
+++ src/saga_core/saga_gui/wksp_tool.cpp	2017-12-07 00:51:19.216303000 +0300
3
@@ -156,14 +156,14 @@
4
 
5
 		FileName.SetExt		("html");
6
 
7
-		if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) )
8
+		if( Stream.Open(static_cast<const wchar_t*>(FileName.GetFullPath().wc_str()), SG_FILE_R) && Stream.Read(Description, Stream.Length()) )
9
 		{
10
 			return( Description.c_str() );
11
 		}
12
 
13
 		FileName.SetExt		("htm");
14
 
15
-		if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) )
16
+		if( Stream.Open(static_cast<const wchar_t*>(FileName.GetFullPath().wc_str()), SG_FILE_R) && Stream.Read(Description, Stream.Length()) )
17
 		{
18
 			return( Description.c_str() );
19
 		}

Return to bug 223758