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