EOD commit

This commit is contained in:
Felipe Zimmerle 2019-02-15 07:57:02 -03:00
parent 7f9f94a251
commit bd053b0c62
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ class Rule {
std::shared_ptr<std::string> *value,
Transaction *trans,
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> *ret,
std::weak_ptr<std::string>>> *ret,
std::string *path,
int *nth);
@ -84,7 +84,7 @@ class Rule {
bool containsDisruptive, std::shared_ptr<RuleMessage> ruleMessage);
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> executeDefaultTransformations(
std::weak_ptr<std::string>>> executeDefaultTransformations(
Transaction *trasn, const std::string &value);
bool executeOperatorAt(Transaction *trasn, std::string key,
@ -106,7 +106,7 @@ class Rule {
std::shared_ptr<std::string> value,
Transaction *trans,
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> *ret,
std::weak_ptr<std::string>>> *ret,
std::shared_ptr<std::string> transStr,
int nth);

View File

@ -330,7 +330,7 @@ inline void Rule::executeTransformation(actions::Action *a,
std::shared_ptr<std::string> *value,
Transaction *trans,
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> *ret,
std::weak_ptr<std::string>>> *ret,
std::string *path,
int *nth) {
@ -338,7 +338,7 @@ inline void Rule::executeTransformation(actions::Action *a,
std::string newValue = a->evaluate(*oldValue, trans);
if (newValue != *oldValue) {
std::shared_ptr<std::string> u(new std::string(newValue));
std::shared_ptr<std::string> u(&newValue);
if (m_containsMultiMatchAction) {
ret->push_back(std::make_pair(u, a->m_name));
(*nth)++;
@ -360,14 +360,14 @@ inline void Rule::executeTransformation(actions::Action *a,
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>>
std::weak_ptr<std::string>>>
Rule::executeDefaultTransformations(
Transaction *trans, const std::string &in) {
int none = 0;
int transformations = 0;
std::string path("");
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> ret;
std::weak_ptr<std::string>>> ret;
std::shared_ptr<std::string> value =
std::shared_ptr<std::string>(new std::string(in));
@ -716,7 +716,7 @@ bool Rule::evaluate(Transaction *trans,
}
std::list<std::pair<std::shared_ptr<std::string>,
std::shared_ptr<std::string>>> values;
std::weak_ptr<std::string>>> values;
values = executeDefaultTransformations(trans, value);