summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-13 10:11:37 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-13 11:19:04 +0000
commit97abbec95665b43a9a09e10a0fb31854cdbd5c0d (patch)
treeb6917d80775c411a5480febd77b89fb256203b6a /tools
parent9a2ff36b51f86ca3ade8093d7698314c0d3db6a6 (diff)
tdf#94306 replace boost::noncopyable in stoc to xmlsec..
Replace with C++11 delete copy-constructur and copy-assignment. Remove boost/noncopyable.hpp includes. Add missing default ctors. With this commit there should be no users of boost::noncopyable left. Change-Id: I6b1e47824912a6a80cc3f00f34938ebc048d8975 Reviewed-on: https://gerrit.libreoffice.org/24051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/fract.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx
index d2c60b8b4090..b6e8135f9b86 100644
--- a/tools/source/generic/fract.cxx
+++ b/tools/source/generic/fract.cxx
@@ -30,7 +30,6 @@
#include <cmath>
#include <boost/rational.hpp>
-#include <boost/noncopyable.hpp>
template<typename T>
static boost::rational<T> rational_FromDouble(double dVal);
@@ -38,10 +37,14 @@ static boost::rational<T> rational_FromDouble(double dVal);
template<typename T>
static void rational_ReduceInaccurate(boost::rational<T>& rRational, unsigned nSignificantBits);
-struct Fraction::Impl : boost::noncopyable
+struct Fraction::Impl
{
bool valid;
boost::rational<sal_Int64> value;
+
+ Impl() = default;
+ Impl(const Impl&) = delete;
+ Impl& operator=(const Impl&) = delete;
};
Fraction::Fraction() : mpImpl(new Impl)