--- parser3/src/include/pa_stylesheet_connection.h 2015/10/26 01:21:56 1.43 +++ parser3/src/include/pa_stylesheet_connection.h 2020/12/11 11:52:20 1.45 @@ -1,14 +1,14 @@ /** @file Parser: Stylesheet connection decl. - Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STYLESHEET_CONNECTION_H #define PA_STYLESHEET_CONNECTION_H -#define IDENT_PA_STYLESHEET_CONNECTION_H "$Id: pa_stylesheet_connection.h,v 1.43 2015/10/26 01:21:56 moko Exp $" +#define IDENT_PA_STYLESHEET_CONNECTION_H "$Id: pa_stylesheet_connection.h,v 1.45 2020/12/11 11:52:20 moko Exp $" #include "libxslt/xslt.h" #include "libxslt/xsltInternals.h" @@ -115,14 +115,12 @@ public: Stylesheet_connection* operator->() { return fconnection; } -/* Stylesheet_connection& operator*() { - return *fconnection; - }*/ // copying Stylesheet_connection_ptr(const Stylesheet_connection_ptr& src) : fconnection(src.fconnection) { fconnection->use(); } + Stylesheet_connection_ptr& operator =(const Stylesheet_connection_ptr& src) { // may do without this=src check fconnection->unuse();