Remove warning and build error with MSVC.
Change-Id: I8eac2f5ff08968a885a8e413bf4db38092036957
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
#include <svx/framelink.hxx>
|
#include <svx/framelink.hxx>
|
||||||
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
|
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <svx/svxdllapi.h>
|
#include <svx/svxdllapi.h>
|
||||||
|
|
||||||
|
#include <boost/scoped_ptr.hpp>
|
||||||
|
|
||||||
namespace svx {
|
namespace svx {
|
||||||
namespace frame {
|
namespace frame {
|
||||||
|
|
||||||
@@ -380,7 +380,7 @@ public:
|
|||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef std::auto_ptr< ArrayImpl > ArrayImplPtr;
|
typedef boost::scoped_ptr<ArrayImpl> ArrayImplPtr;
|
||||||
|
|
||||||
ArrayImplPtr mxImpl;
|
ArrayImplPtr mxImpl;
|
||||||
};
|
};
|
||||||
|
@@ -58,8 +58,8 @@ Polygon toPolygon( const basegfx::B2DPolygon& rPoly )
|
|||||||
// This polygon not empty but is too small to display. Approximate it
|
// This polygon not empty but is too small to display. Approximate it
|
||||||
// with a rectangle large enough to be displayed.
|
// with a rectangle large enough to be displayed.
|
||||||
double nX = aRange.getMinX(), nY = aRange.getMinY();
|
double nX = aRange.getMinX(), nY = aRange.getMinY();
|
||||||
double nW = std::max<double>(1.0, round(fW));
|
double nW = std::max<double>(1.0, rtl::math::round(fW));
|
||||||
double nH = std::max<double>(1.0, round(fH));
|
double nH = std::max<double>(1.0, rtl::math::round(fH));
|
||||||
|
|
||||||
Polygon aTarget;
|
Polygon aTarget;
|
||||||
aTarget.Insert(0, Point(nX, nY));
|
aTarget.Insert(0, Point(nX, nY));
|
||||||
|
Reference in New Issue
Block a user