diff options
author | Fridrich Strba <fridrich.strba@bluewin.ch> | 2011-07-10 16:56:33 -0600 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-07-11 08:32:18 +0200 |
commit | 2fab6d4b4827de67f268a57b4135a6e10a50613e (patch) | |
tree | ce5e8c30e43d78b1555b3fb42827358f94aa64b2 | |
parent | 42b8a53dc88f627a9220a5e283b456c571833a5b (diff) |
Fix windows build
Use const reference in copy constructor if we are going to give it const objects.
-rw-r--r-- | oox/inc/oox/core/contexthandler.hxx | 2 | ||||
-rw-r--r-- | oox/source/core/contexthandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/inc/oox/core/contexthandler.hxx b/oox/inc/oox/core/contexthandler.hxx index 118d9396e354..94a095b22c0c 100644 --- a/oox/inc/oox/core/contexthandler.hxx +++ b/oox/inc/oox/core/contexthandler.hxx @@ -63,7 +63,7 @@ typedef ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XFastContextHandler class ContextHandler : public ContextHandler_BASE { public: - explicit ContextHandler( ContextHandler& rParent ); + explicit ContextHandler( const ContextHandler& rParent ); virtual ~ContextHandler(); /** Returns the filter instance. */ diff --git a/oox/source/core/contexthandler.cxx b/oox/source/core/contexthandler.cxx index d781a811d520..8b73a5f47885 100644 --- a/oox/source/core/contexthandler.cxx +++ b/oox/source/core/contexthandler.cxx @@ -42,7 +42,7 @@ using ::rtl::OUString; // ============================================================================ -ContextHandler::ContextHandler( ContextHandler& rParent ) : +ContextHandler::ContextHandler( const ContextHandler& rParent ) : ContextHandler_BASE(), mxBaseData( rParent.mxBaseData ) { |