Kaydet (Commit) 9e8564af authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Simplify o3tl::LazyUpdate

Change-Id: I7569a20877411a5ceb4a7475d82cb634eb6cb114
üst f965b108
......@@ -46,7 +46,7 @@ using namespace canvas;
namespace
{
inline uno::Sequence< double > color2Sequence( sal_Int32 const& nColor )
inline uno::Sequence< double > color2Sequence( sal_Int32 nColor )
{
// TODO(F3): Color management
uno::Sequence< double > aRes( 4 );
......@@ -84,13 +84,13 @@ namespace
{
o3tl::LazyUpdate<sal_Int32,
uno::Sequence<double>,
o3tl::LAZYUPDATE_FUNCTION_TAG > m_aPenColor;
decltype(&color2Sequence)> m_aPenColor;
o3tl::LazyUpdate<sal_Int32,
uno::Sequence<double>,
o3tl::LAZYUPDATE_FUNCTION_TAG > m_aFillColor;
decltype(&color2Sequence)> m_aFillColor;
o3tl::LazyUpdate<geometry::RealRectangle2D,
uno::Reference< rendering::XPolyPolygon2D >,
o3tl::LAZYUPDATE_FUNCTOR_TAG > m_aRectClip;
boost::function1<uno::Reference<rendering::XPolyPolygon2D>, geometry::RealRectangle2D> > m_aRectClip;
geometry::AffineMatrix2D m_aTransformation;
explicit SimpleRenderState( uno::Reference<rendering::XGraphicDevice> const& xDevice ) :
......@@ -367,7 +367,7 @@ namespace
typedef o3tl::LazyUpdate<
rendering::FontRequest,
uno::Reference< rendering::XCanvasFont >,
o3tl::LAZYUPDATE_FUNCTOR_TAG > SimpleFont;
boost::function1<uno::Reference<rendering::XCanvasFont>, rendering::FontRequest> > SimpleFont;
uno::Reference<rendering::XCanvas> mxCanvas;
SimpleFont maFont;
......
This diff is collapsed.
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