File tree Expand file tree Collapse file tree 4 files changed +24
-52
lines changed
test/unit_testing/tests/Sys
intended-Linux/include/dynamic
intended-Mac/include/dynamic Expand file tree Collapse file tree 4 files changed +24
-52
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,8 @@ class Dynamic_std_deque<std::deque<T>> {
91
91
auto result = [o, args] {
92
92
auto x = args[0 ].asType <T>();
93
93
{
94
- int tempNumber = 0 ;
95
-
96
- {
97
- int fromIndex = 0 ;
98
-
99
- tempNumber = HxArray::indexOf<T>(o, x, fromIndex);
100
- };
101
-
94
+ int fromIndex = 0 ;
95
+ int tempNumber = HxArray::indexOf<T>(o, x, fromIndex);
102
96
int index = tempNumber;
103
97
104
98
if (index < 0 ) {
@@ -126,20 +120,14 @@ class Dynamic_std_deque<std::deque<T>> {
126
120
return Dynamic::makeFunc<std::deque<T>>(d, [](std::deque<T>* o, std::deque<Dynamic> args) {
127
121
auto result = [o, args] {
128
122
std::shared_ptr<std::deque<T>> result = std::make_shared<std::deque<T>>(std::deque<T>{});
123
+ int _g = 0 ;
124
+ std::deque<T>* _g1 = o;
129
125
130
- {
131
- int _g = 0 ;
132
- std::deque<T>* _g1 = o;
133
-
134
- while (_g < (int )(_g1->size ())) {
135
- T obj = (*_g1)[_g];
126
+ while (_g < (int )(_g1->size ())) {
127
+ T obj = (*_g1)[_g];
136
128
137
- ++_g;
138
-
139
- {
140
- result->push_back (obj);
141
- };
142
- };
129
+ ++_g;
130
+ result->push_back (obj);
143
131
};
144
132
145
133
return result;
Original file line number Diff line number Diff line change @@ -69,12 +69,10 @@ class Dynamic_std_string {
69
69
{
70
70
std::string tempResult;
71
71
72
- {
73
- if (endIndex < 0 ) {
74
- tempResult = o->substr (startIndex);
75
- } else {
76
- tempResult = o->substr (startIndex, endIndex - startIndex);
77
- };
72
+ if (endIndex < 0 ) {
73
+ tempResult = o->substr (startIndex);
74
+ } else {
75
+ tempResult = o->substr (startIndex, endIndex - startIndex);
78
76
};
79
77
80
78
return tempResult;
Original file line number Diff line number Diff line change @@ -91,14 +91,8 @@ class Dynamic_std_deque<std::deque<T>> {
91
91
auto result = [o, args] {
92
92
auto x = args[0 ].asType <T>();
93
93
{
94
- int tempNumber = 0 ;
95
-
96
- {
97
- int fromIndex = 0 ;
98
-
99
- tempNumber = HxArray::indexOf<T>(o, x, fromIndex);
100
- };
101
-
94
+ int fromIndex = 0 ;
95
+ int tempNumber = HxArray::indexOf<T>(o, x, fromIndex);
102
96
int index = tempNumber;
103
97
104
98
if (index < 0 ) {
@@ -126,20 +120,14 @@ class Dynamic_std_deque<std::deque<T>> {
126
120
return Dynamic::makeFunc<std::deque<T>>(d, [](std::deque<T>* o, std::deque<Dynamic> args) {
127
121
auto result = [o, args] {
128
122
std::shared_ptr<std::deque<T>> result = std::make_shared<std::deque<T>>(std::deque<T>{});
123
+ int _g = 0 ;
124
+ std::deque<T>* _g1 = o;
129
125
130
- {
131
- int _g = 0 ;
132
- std::deque<T>* _g1 = o;
133
-
134
- while (_g < (int )(_g1->size ())) {
135
- T obj = (*_g1)[_g];
126
+ while (_g < (int )(_g1->size ())) {
127
+ T obj = (*_g1)[_g];
136
128
137
- ++_g;
138
-
139
- {
140
- result->push_back (obj);
141
- };
142
- };
129
+ ++_g;
130
+ result->push_back (obj);
143
131
};
144
132
145
133
return result;
Original file line number Diff line number Diff line change @@ -69,12 +69,10 @@ class Dynamic_std_string {
69
69
{
70
70
std::string tempResult;
71
71
72
- {
73
- if (endIndex < 0 ) {
74
- tempResult = o->substr (startIndex);
75
- } else {
76
- tempResult = o->substr (startIndex, endIndex - startIndex);
77
- };
72
+ if (endIndex < 0 ) {
73
+ tempResult = o->substr (startIndex);
74
+ } else {
75
+ tempResult = o->substr (startIndex, endIndex - startIndex);
78
76
};
79
77
80
78
return tempResult;
You can’t perform that action at this time.
0 commit comments