@@ -327,24 +327,24 @@ inline void RuleWithActions::executeTransformation(
327
327
const actions::transformations::Transformation &a,
328
328
std::string &value,
329
329
const Transaction *trans,
330
- TransformationResults * ret,
331
- std::string * path,
332
- int * nth) const {
330
+ TransformationResults & ret,
331
+ std::string & path,
332
+ int & nth) const {
333
333
334
334
if (a.transform (value, trans) &&
335
335
m_containsMultiMatchAction) {
336
- ret-> push_back ({value, a.m_name });
337
- (* nth) ++;
336
+ ret. push_back ({value, a.m_name });
337
+ nth++;
338
338
}
339
339
340
- if (path-> empty ()) {
341
- path-> append (*a.m_name .get ());
340
+ if (path. empty ()) {
341
+ path. append (*a.m_name .get ());
342
342
} else {
343
- path-> append (" ," + *a.m_name .get ());
343
+ path. append (" ," + *a.m_name .get ());
344
344
}
345
345
346
346
ms_dbg_a (trans, 9 , " T (" + \
347
- std::to_string (* nth) + " ) " + \
347
+ std::to_string (nth) + " ) " + \
348
348
*a.m_name .get () + " : \" " + \
349
349
utils::string::limitTo (80 , value) +" \" " );
350
350
}
@@ -353,7 +353,7 @@ void RuleWithActions::executeTransformations(
353
353
const Transaction *trans, const std::string &in, TransformationResults &ret) {
354
354
int none = 0 ;
355
355
int transformations = 0 ;
356
- std::string path ( " " ) ;
356
+ std::string path;
357
357
auto value = in;
358
358
359
359
if (m_containsMultiMatchAction == true ) {
@@ -381,16 +381,16 @@ void RuleWithActions::executeTransformations(
381
381
// FIXME: here the object needs to be a transformation already.
382
382
auto t = dynamic_cast <const Transformation*>(a.get ());
383
383
assert (t != nullptr );
384
- executeTransformation (*t, value, trans, & ret, & path,
385
- & transformations);
384
+ executeTransformation (*t, value, trans, ret, path,
385
+ transformations);
386
386
}
387
387
}
388
388
389
389
for (const Transformation *a : m_transformations) {
390
390
assert (a != nullptr );
391
391
if (none == 0 ) {
392
- executeTransformation (*a, value, trans, & ret, & path,
393
- & transformations);
392
+ executeTransformation (*a, value, trans, ret, path,
393
+ transformations);
394
394
}
395
395
if (a->m_isNone ) {
396
396
none--;
@@ -419,8 +419,8 @@ void RuleWithActions::executeTransformations(
419
419
auto a = dynamic_cast <const Transformation*>(b.second .get ());
420
420
assert (a != nullptr );
421
421
if (none == 0 ) {
422
- executeTransformation (*a, value, trans, & ret, & path,
423
- & transformations);
422
+ executeTransformation (*a, value, trans, ret, path,
423
+ transformations);
424
424
}
425
425
if (a->m_isNone ) {
426
426
none--;
0 commit comments