Kaydet (Commit) ce8010b4 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Remove warning and build error with MSVC.

Change-Id: I8eac2f5ff08968a885a8e413bf4db38092036957
üst 9d2424a6
...@@ -23,11 +23,11 @@ ...@@ -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: ...@@ -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 ) ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment