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