File kodi.FTPParse.patch of Package kodi (Revision 59a38ce8a8144895e09634bbace5e9a9)

Currently displaying revision 59a38ce8a8144895e09634bbace5e9a9 , Show latest

72
 
1
--- a/xbmc/filesystem/FTPParse.cpp
2
+++ b/xbmc/filesystem/FTPParse.cpp
3
@@ -34,7 +34,7 @@ CFTPParse::CFTPParse()
4
   m_time = 0;
5
 }
6
 
7
-string CFTPParse::getName()
8
+std::string CFTPParse::getName()
9
 {
10
   return m_name;
11
 }
12
@@ -59,16 +59,16 @@ time_t CFTPParse::getTime()
13
   return m_time;
14
 }
15
 
16
-void CFTPParse::setTime(string str)
17
+void CFTPParse::setTime(std::string str)
18
 {
19
   /* Variables used to capture patterns via the regexes */
20
-  string month;
21
-  string day;
22
-  string year;
23
-  string hour;
24
-  string minute;
25
-  string second;
26
-  string am_or_pm;
27
+  std::string month;
28
+  std::string day;
29
+  std::string year;
30
+  std::string hour;
31
+  std::string minute;
32
+  std::string second;
33
+  std::string am_or_pm;
34
 
35
   /* time struct used to set the time_t variable */
36
   struct tm time_struct = {};
37
@@ -338,21 +338,21 @@ int CFTPParse::getDayOfWeek(int month, i
38
   return day_of_week;
39
 }
40
 
41
-int CFTPParse::FTPParse(string str)
42
+int CFTPParse::FTPParse(std::string str)
43
 {
44
   /* Various variable to capture patterns via the regexes */
45
-  string permissions;
46
-  string link_count;
47
-  string owner;
48
-  string group;
49
-  string size;
50
-  string date;
51
-  string name;
52
-  string type;
53
-  string stuff;
54
-  string facts;
55
-  string version;
56
-  string file_id;
57
+  std::string permissions;
58
+  std::string link_count;
59
+  std::string owner;
60
+  std::string group;
61
+  std::string size;
62
+  std::string date;
63
+  std::string name;
64
+  std::string type;
65
+  std::string stuff;
66
+  std::string facts;
67
+  std::string version;
68
+  std::string file_id;
69
 
70
   /* Regex for standard Unix listing formats */
71
   pcrecpp::RE unix_re("^([-bcdlps])" // type
72