[Libreoffice-commits] .: filter/source
Sebastian Spaeth
spaetz at kemper.freedesktop.org
Tue Nov 9 01:59:28 PST 2010
filter/source/svg/units.cxx | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
New commits:
commit 5db2444d6c4da8650f47b3f587792c334b3958ea
Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date: Mon Nov 8 16:46:08 2010 +0100
Convert boost::spirit -> boost::spirit::classic
Move to boost::spirit::classic. Note down that this is a candidate for
conversion as a FIXME and remove some unneeded includes. Compiled just
fine.
diff --git a/filter/source/svg/units.cxx b/filter/source/svg/units.cxx
index 96a810d..50487e6 100644
--- a/filter/source/svg/units.cxx
+++ b/filter/source/svg/units.cxx
@@ -29,17 +29,10 @@
#include "precompiled_filter.hxx"
#include "units.hxx"
+#include <basegfx/range/b2drange.hxx>
#include "gfxtypes.hxx"
-#include "spirit_supplements.hxx"
-
-#include <string.h>
#include <rtl/ustring.hxx>
-
-#include <boost/bind.hpp>
-// workaround. spirit uses INT_MAX.
-#include <limits.h>
-#include <boost/spirit.hpp>
-
+#include <boost/spirit/include/classic.hpp>
namespace svgi
{
@@ -92,7 +85,8 @@ double convLength( double value, SvgUnit unit, const State& rState, char dir )
double convLength( const rtl::OUString& sValue, const State& rState, char dir )
{
- using namespace ::boost::spirit;
+ //FIXME: convert deprecated spirit::classic to use spirit::qi
+ using namespace ::boost::spirit::classic;
rtl::OString aUTF8 = rtl::OUStringToOString( sValue,
RTL_TEXTENCODING_UTF8 );
More information about the Libreoffice-commits
mailing list