From 24ad37bdf4edc8b9ea3af4eeb70c8487407d3472 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 18 May 2012 13:56:47 +0200 Subject: MSVC needs new_clone for abstract class in ptr_vector See www.boost.org/doc/libs/1_49_0/libs/ptr_container/doc/tutorial.html#cloneability Change-Id: Ie5409c598f2364bc86f296dac4e9f193213d45c4 --- sc/inc/colorscale.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sc/inc/colorscale.hxx') diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index a9a5211895de..b63bc66baa39 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -230,4 +230,11 @@ public: size_t size() const; }; +// see http://www.boost.org/doc/libs/1_49_0/libs/ptr_container/doc/tutorial.html#cloneability +//for MSVC we need: +inline ScColorFormat* new_clone( const ScColorFormat& rFormat ) +{ + return rFormat.Clone(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit