Replace GEOS function calls by QgsGeometry class methods
fix indentation
no modify original geometry
avoid memory leak
Merge pull request #1451 from ahuarte47/Issue_OffsetCurve_API

Replace GEOS function calls by QgsGeometry class methods