Correct missing or incorrect spaces according to coding convention.
Change-Id: If90d7c1926a99fe0ee6847920a8c08ecf6cec89f
paint->pImpl->update(*renderer, nullptr, 255, compList, RenderUpdateFlag::None);
//Update all retained paint nodes
} else {
- for (auto paint: paints) {
+ for (auto paint : paints) {
paint->pImpl->update(*renderer, nullptr, 255, compList, RenderUpdateFlag::None);
}
}
if (!renderer->preRender()) return Result::InsufficientCondition;
- for(auto paint: paints) {
- if(!paint->pImpl->render(*renderer)) return Result::InsufficientCondition;
+ for (auto paint : paints) {
+ if (!paint->pImpl->render(*renderer)) return Result::InsufficientCondition;
}
if (!renderer->postRender()) return Result::InsufficientCondition;
template<typename T>
struct DuplicateMethod
{
- virtual ~DuplicateMethod(){}
+ virtual ~DuplicateMethod() {}
virtual T* duplicate() = 0;
};
T* inst = nullptr;
FillDup(T* _inst) : inst(_inst) {}
- ~FillDup(){}
+ ~FillDup() {}
Fill* duplicate() override
{
}
};
-#endif //_TVG_FILL_H_
\ No newline at end of file
+#endif //_TVG_FILL_H_
{
struct StrategyMethod
{
- virtual ~StrategyMethod(){}
+ virtual ~StrategyMethod() {}
virtual bool dispose(RenderMethod& renderer) = 0;
virtual void* update(RenderMethod& renderer, const RenderTransform* transform, uint32_t opacity, vector<Composite> compList, RenderUpdateFlag pFlag) = 0; //Return engine data if it has.
T* inst = nullptr;
PaintMethod(T* _inst) : inst(_inst) {}
- ~PaintMethod(){}
+ ~PaintMethod() {}
bool bounds(float* x, float* y, float* w, float* h) const override
{
This is necessary for scene composition */
void* edata = nullptr;
- for (auto paint: paints) {
+ for (auto paint : paints) {
edata = paint->pImpl->update(renderer, transform, opacity, compList, static_cast<uint32_t>(flag));
}
return edata;
bool render(RenderMethod &renderer)
{
- for(auto paint: paints) {
- if(!paint->pImpl->render(renderer)) return false;
+ for (auto paint : paints) {
+ if (!paint->pImpl->render(renderer)) return false;
}
return true;
}
auto w = 0.0f;
auto h = 0.0f;
- for(auto paint: paints) {
+ for (auto paint : paints) {
auto x2 = FLT_MAX;
auto y2 = FLT_MAX;
auto w2 = 0.0f;
dup->paints.reserve(paints.size());
- for (auto paint: paints) {
+ for (auto paint : paints) {
dup->paints.push_back(paint->duplicate());
}
Point min = { pts[0].x, pts[0].y };
Point max = { pts[0].x, pts[0].y };
- for(uint32_t i = 1; i < ptsCnt; ++i) {
+ for (uint32_t i = 1; i < ptsCnt; ++i) {
if (pts[i].x < min.x) min.x = pts[i].x;
if (pts[i].y < min.y) min.y = pts[i].y;
if (pts[i].x > max.x) max.x = pts[i].x;
if (!((int)child->stroke.flags & (int)SvgStrokeFlags::Dash)) {
if (parent->stroke.dash.array.cnt > 0) {
child->stroke.dash.array.clear();
- for(uint32_t i = 0; i < parent->stroke.dash.array.cnt; ++i) {
+ for (uint32_t i = 0; i < parent->stroke.dash.array.cnt; ++i) {
child->stroke.dash.array.push(parent->stroke.dash.array.list[i]);
}
}
Point p = {arr[0], arr[1]};
cmds->push_back(PathCommand::MoveTo);
pts->push_back(p);
- *cur = {arr[0] ,arr[1]};
- *startPoint = {arr[0] ,arr[1]};
+ *cur = {arr[0], arr[1]};
+ *startPoint = {arr[0], arr[1]};
break;
}
case 'l':
Point p = {arr[0], arr[1]};
cmds->push_back(PathCommand::LineTo);
pts->push_back(p);
- *cur = {arr[0] ,arr[1]};
+ *cur = {arr[0], arr[1]};
break;
}
case 'c':
case 'a':
case 'A': {
_pathAppendArcTo(cmds, pts, cur, curCtl, arr[5], arr[6], arr[0], arr[1], arr[2], arr[3], arr[4]);
- *cur = *curCtl = {arr[5] ,arr[6]};
+ *cur = *curCtl = {arr[5], arr[6]};
*isQuadratic = false;
break;
}