From f7ca931e581f2d63f73bcd324da50f5ee3ae1f59 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 25 Jun 2015 18:09:17 +0200 Subject: [PATCH] try to fix build on Windows Change-Id: Iff2aa943aef9c23c60e400f092f884fc00de4ccf --- src/lib/IWORKPath.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/lib/IWORKPath.cpp b/src/lib/IWORKPath.cpp index 0600106..cb33097 100644 --- a/src/lib/IWORKPath.cpp +++ b/src/lib/IWORKPath.cpp @@ -266,18 +266,6 @@ void CurveTo::write(RVNGPropertyList &element) const } -namespace -{ - -void doAppendCurveTo(IWORKPath *const path, const std::vector &points) -{ - assert(path); - assert(points.size() == 6); - path->appendCurveTo(points[0], points[1], points[2], points[3], points[4], points[5]); -} - -} - IWORKPath::Element::~Element() { } @@ -301,7 +289,7 @@ IWORKPath::IWORKPath(const std::string &path) const qi::rule rule = +( - ('C' >> qi::repeat(6)[double_])[bind(&doAppendCurveTo, this, qi::_1)] + ('C' >> double_ >> double_ >> double_ >> double_ >> double_ >> double_)[bind(&IWORKPath::appendCurveTo, this, qi::_1, qi::_2, qi::_3, qi::_4, qi::_5, qi::_6)] | ('M' >> double_ >> double_)[bind(&IWORKPath::appendMoveTo, this, qi::_1, qi::_2)] | ('L' >> double_ >> double_)[bind(&IWORKPath::appendLineTo, this, qi::_1, qi::_2)] | qi::char_('Z')[bind(&IWORKPath::appendClose, this)] -- 2.4.2