summarylogtreecommitdiffstats
path: root/findFile.patch
blob: ade407108a78f2a684d9bd6940d6d26ef81f6561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- winusb-1.0.11/src/findFile.cpp.orig	2014-01-21 15:11:07.698652278 +0100
+++ winusb-1.0.11/src/findFile.cpp	2014-01-21 15:11:29.388444590 +0100
@@ -37,14 +37,14 @@
     }
 
     #if defined(__UNIX__)
-    testPath = wxString(wxStandardPaths().GetInstallPrefix() + _T("/share/") + _T(PACKAGE) + _T("/") + str);
+    testPath = wxString(wxStandardPaths::Get().GetInstallPrefix() + _T("/share/") + _T(PACKAGE) + _T("/") + str);
     if(wxFileExists(testPath) || wxDirExists(testPath)) // Si c'est dans le dossier /usr/.../share/nomprog
     {
         return testPath;
     }
     #endif // defined(__UNIX__)
 
-    testPath = wxString(wxStandardPaths().GetDataDir() + _T("/") + str);
+    testPath = wxString(wxStandardPaths::Get().GetDataDir() + _T("/") + str);
     if(wxFileExists(testPath) || wxDirExists(testPath)) // Si c'est dans le dossier /usr/.../share/nomPaquet
     {
         return testPath;