Package: ebook2cwgui / 0.1.2-5

wx3.0-compat.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix to build with wxWidgets 3.0
Author: Olly Betts <olly@survex.com>
Last-Update: 2014-03-13

--- ebook2cwgui-0.1.2.orig/ebook2cwgui.cpp
+++ ebook2cwgui-0.1.2/ebook2cwgui.cpp
@@ -679,8 +679,7 @@ wxString Ebook2cw::FindConfigFile () {
 	/* Otherwise where it "should" be; create if not there */
 
 	wxString dir;
-	wxStandardPaths stdPaths;
-	dir = stdPaths.GetUserConfigDir();
+	dir = wxStandardPaths::Get().GetUserConfigDir();
 
 #ifdef __WXMSW__
 	if (!wxDirExists(dir + wxT("\\ebook2cw"))) {