summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-17 08:35:01 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2014-11-17 16:37:47 -0500
commit6d7282fa8a2c6075ae838aaababe47a1e6513d74 (patch)
tree31a812d399d68f8748be1a22b856e62e7ac80b02 /include
parent0348341f5ef8b92ed26451e90e42355bdf83e2f3 (diff)
Apply pimpl to Fraction.
Change-Id: I60eb597a6374b807b2264af6d5841a42e9b1c0f3
Diffstat (limited to 'include')
-rw-r--r--include/tools/fract.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx
index 597876f4f0ee..93663aca8ad2 100644
--- a/include/tools/fract.hxx
+++ b/include/tools/fract.hxx
@@ -19,8 +19,7 @@
#ifndef INCLUDED_TOOLS_FRACT_HXX
#define INCLUDED_TOOLS_FRACT_HXX
-#include <boost/rational.hpp>
-#include <sal/log.hxx>
+#include <sal/types.h>
#include <tools/toolsdllapi.h>
class SvStream;
@@ -29,17 +28,18 @@ class SvStream;
// calculations using sal_Int64 with checks for 'long' overflows.
class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Fraction
{
-private:
- bool valid;
- boost::rational<sal_Int64> value;
+ struct Impl;
+
+ Impl* mpImpl;
bool HasOverflowValue();
public:
- Fraction() { valid = true; }
+ Fraction();
Fraction( const Fraction & rFrac );
Fraction( long nNum, long nDen=1 );
Fraction( double dVal );
+ ~Fraction();
bool IsValid() const;