MCPcopy Create free account
hub / github.com/MapServer/MapServer / styleObj_clone

Function styleObj_clone

mapscript/php/mapscript_i.c:1432–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430}
1431
1432styleObj *styleObj_clone(styleObj *style){
1433 styleObj *newstyle = NULL;
1434 if (!style)
1435 return NULL;
1436
1437 newstyle = (styleObj *)malloc(sizeof(styleObj));
1438 initStyle(newstyle);
1439
1440 msCopyStyle(newstyle, style);
1441
1442 return newstyle;
1443}
1444
1445void styleObj_setGeomTransform(styleObj *style, char *transform){
1446 if (!style)

Callers 1

Calls 2

initStyleFunction · 0.85
msCopyStyleFunction · 0.85

Tested by

no test coverage detected