diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-18 13:56:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-18 13:59:41 +0200 |
commit | 24ad37bdf4edc8b9ea3af4eeb70c8487407d3472 (patch) | |
tree | 6fe8b28555f05c152b49d0b492668b9dc1855e03 /sc | |
parent | 14e1af63faa67c0ec800a8416671e9a9cb1db359 (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/colorscale.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
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: */ |