1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
diff -Nur original/desktop/src/xmlmap.cc modified/desktop/src/xmlmap.cc
--- original/desktop/src/xmlmap.cc 2013-04-05 07:49:43.000000000 +0100
+++ modified/desktop/src/xmlmap.cc 2015-10-24 17:02:59.792298395 +0100
@@ -540,14 +540,14 @@
np.SortBySummary();
cout << "\n\nCute summary:\n";
for_each(np.begin(), np.priority_end(),
- bind( mem_fn(&XmlNodeMapping::DumpSummaries),
- _1, ref(cout)));
+ std::bind( std::mem_fn(&XmlNodeMapping::DumpSummaries),
+ _1, std::ref(cout)));
np.SortByPath();
cout << "\n\nCute summary:\n";
for_each(np.begin(), np.priority_end(),
- bind( mem_fn(&XmlNodeMapping::DumpSummaries),
- _1, ref(cout)));
+ std::bind( std::mem_fn(&XmlNodeMapping::DumpSummaries),
+ _1, std::ref(cout)));
}
catch( Glib::ConvertError &e ) {
cerr << e.what() << endl;
diff -Nur original/tools/bio.cc modified/tools/bio.cc
--- original/tools/bio.cc 2013-04-05 07:49:43.000000000 +0100
+++ modified/tools/bio.cc 2015-10-24 16:50:04.487574052 +0100
@@ -869,7 +869,7 @@
class App
{
public:
- typedef shared_ptr<OutputBase> OutputPtr;
+ typedef std::shared_ptr<OutputBase> OutputPtr;
typedef vector<OutputPtr> OutputsType;
private:
diff -Nur original/tools/btool.cc modified/tools/btool.cc
--- original/tools/btool.cc 2013-04-05 07:49:43.000000000 +0100
+++ modified/tools/btool.cc 2015-10-24 16:50:04.487574052 +0100
@@ -284,7 +284,7 @@
}
};
-shared_ptr<Parser> GetParser(const string &name,
+std::shared_ptr<Parser> GetParser(const string &name,
const string &filename,
bool null_parser,
bool immediate_display,
@@ -296,139 +296,139 @@
if( null_parser ) {
// use null parser
- return shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
+ return std::shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
}
else if( bbackup_mode ) {
#ifdef __BARRY_BACKUP_MODE__
// Only one backup file per run
- static shared_ptr<Parser> backup;
+ static std::shared_ptr<Parser> backup;
if( !backup.get() ) {
backup.reset( new Backup(filename) );
}
return backup;
#else
- return shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
+ return std::shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
#endif
}
// check for recognized database names
else if( name == Contact::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Contact, Store<Contact> > (
new Store<Contact>(filename, false, dnow, vmode)));
}
else if( name == Message::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Message, Store<Message> > (
new Store<Message>(filename, false, dnow, vmode)));
}
else if( name == Calendar::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Calendar, Store<Calendar> > (
new Store<Calendar>(filename, false, dnow, vmode)));
}
else if( name == CalendarAll::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<CalendarAll, Store<CalendarAll> > (
new Store<CalendarAll>(filename, false, dnow, vmode)));
}
else if( name == CallLog::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<CallLog, Store<CallLog> > (
new Store<CallLog>(filename, false, dnow, vmode)));
}
else if( name == Bookmark::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Bookmark, Store<Bookmark> > (
new Store<Bookmark>(filename, false, dnow, vmode)));
}
else if( name == ServiceBook::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<ServiceBook, Store<ServiceBook> > (
new Store<ServiceBook>(filename, false, dnow, vmode)));
}
else if( name == Memo::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Memo, Store<Memo> > (
new Store<Memo>(filename, false, dnow, vmode)));
}
else if( name == Task::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Task, Store<Task> > (
new Store<Task>(filename, false, dnow, vmode)));
}
else if( name == PINMessage::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<PINMessage, Store<PINMessage> > (
new Store<PINMessage>(filename, false, dnow, vmode)));
}
else if( name == SavedMessage::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<SavedMessage, Store<SavedMessage> > (
new Store<SavedMessage>(filename, false, dnow, vmode)));
}
else if( name == Sms::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Sms, Store<Sms> > (
new Store<Sms>(filename, false, dnow, vmode)));
}
else if( name == Folder::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Folder, Store<Folder> > (
new Store<Folder>(filename, false, dnow, vmode)));
}
else if( name == TimeZone::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<TimeZone, Store<TimeZone> > (
new Store<TimeZone>(filename, false, dnow, vmode)));
}
else if( name == HandheldAgent::GetDBName() ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<HandheldAgent, Store<HandheldAgent> > (
new Store<HandheldAgent>(filename, false, dnow, vmode)));
}
else {
// unknown database, use null parser
- return shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
+ return std::shared_ptr<Parser>( new Barry::HexDumpParser(cout) );
}
}
-shared_ptr<Builder> GetBuilder(const string &name, const string &filename)
+std::shared_ptr<Builder> GetBuilder(const string &name, const string &filename)
{
// check for recognized database names
if( name == Contact::GetDBName() ) {
- return shared_ptr<Builder>(
+ return std::shared_ptr<Builder>(
new RecordBuilder<Contact, Store<Contact> > (
new Store<Contact>(filename, true, true, false)));
}
else if( name == Calendar::GetDBName() ) {
- return shared_ptr<Builder>(
+ return std::shared_ptr<Builder>(
new RecordBuilder<Calendar, Store<Calendar> > (
new Store<Calendar>(filename, true, true, false)));
}
else if( name == CalendarAll::GetDBName() ) {
- return shared_ptr<Builder>(
+ return std::shared_ptr<Builder>(
new RecordBuilder<CalendarAll, Store<CalendarAll> > (
new Store<CalendarAll>(filename, true, true, false)));
}
else if( name == Memo::GetDBName() ) {
- return shared_ptr<Builder>(
+ return std::shared_ptr<Builder>(
new RecordBuilder<Memo, Store<Memo> > (
new Store<Memo>(filename, true, true, false)));
}
else if( name == Task::GetDBName() ) {
- return shared_ptr<Builder>(
+ return std::shared_ptr<Builder>(
new RecordBuilder<Task, Store<Task> > (
new Store<Task>(filename, true, true, false)));
}
/*
else if( name == "Messages" ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<Message, Store<Message> > (
new Store<Message>(filename, true, true, false)));
}
else if( name == "Service Book" ) {
- return shared_ptr<Parser>(
+ return std::shared_ptr<Parser>(
new RecordParser<ServiceBook, Store<ServiceBook> > (
new Store<ServiceBook>(filename, true, true, false)));
}
@@ -942,7 +942,7 @@
}
unsigned int id = desktop.GetDBID(dbNames[0]);
- shared_ptr<Parser> parse = GetParser(dbNames[0],filename,
+ std::shared_ptr<Parser> parse = GetParser(dbNames[0],filename,
null_parser, true, vformat_mode, bbackup_mode);
for( unsigned int i = 0; i < stCommands.size(); i++ ) {
@@ -968,7 +968,7 @@
vector<string>::iterator b = dbNames.begin();
for( ; b != dbNames.end(); b++ ) {
- shared_ptr<Parser> parse = GetParser(*b,
+ std::shared_ptr<Parser> parse = GetParser(*b,
filename, null_parser, !sort_records,
vformat_mode, bbackup_mode);
unsigned int id = desktop.GetDBID(*b);
@@ -1000,7 +1000,7 @@
vector<string>::iterator b = saveDbNames.begin();
for( ; b != saveDbNames.end(); b++ ) {
- shared_ptr<Builder> build = GetBuilder(*b,
+ std::shared_ptr<Builder> build = GetBuilder(*b,
filename);
unsigned int id = desktop.GetDBID(*b);
desktop.SaveDatabase(id, *build);
|