From 9e8564afbdb922460b245beff8f41bf2e3ac9d30 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Mar 2015 22:39:16 +0100 Subject: Simplify o3tl::LazyUpdate Change-Id: I7569a20877411a5ceb4a7475d82cb634eb6cb114 --- canvas/source/simplecanvas/simplecanvasimpl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'canvas') diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx index 07c8717121e6..79578d4c37c0 100644 --- a/canvas/source/simplecanvas/simplecanvasimpl.cxx +++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx @@ -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, - o3tl::LAZYUPDATE_FUNCTION_TAG > m_aPenColor; + decltype(&color2Sequence)> m_aPenColor; o3tl::LazyUpdate, - o3tl::LAZYUPDATE_FUNCTION_TAG > m_aFillColor; + decltype(&color2Sequence)> m_aFillColor; o3tl::LazyUpdate, - o3tl::LAZYUPDATE_FUNCTOR_TAG > m_aRectClip; + boost::function1, geometry::RealRectangle2D> > m_aRectClip; geometry::AffineMatrix2D m_aTransformation; explicit SimpleRenderState( uno::Reference const& xDevice ) : @@ -367,7 +367,7 @@ namespace typedef o3tl::LazyUpdate< rendering::FontRequest, uno::Reference< rendering::XCanvasFont >, - o3tl::LAZYUPDATE_FUNCTOR_TAG > SimpleFont; + boost::function1, rendering::FontRequest> > SimpleFont; uno::Reference mxCanvas; SimpleFont maFont; -- cgit