--- parser3/src/classes/op.C 2001/07/07 16:38:01 1.34 +++ parser3/src/classes/op.C 2001/07/26 16:16:57 1.35 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: op.C,v 1.34 2001/07/07 16:38:01 parser Exp $"; +static const char *RCSId="$Id: op.C,v 1.35 2001/07/26 16:16:57 parser Exp $"; #include "classes.h" #include "pa_config_includes.h" @@ -28,10 +28,6 @@ static const char *RCSId="$Id: op.C,v 1. #define SWITCH_DATA_NAME "SWITCH-DATA" #define DEFAULT_VALUE "DEFAULT" -// local variable - -static Methoded *OP; - // class class MOP : public Methoded { @@ -234,7 +230,7 @@ static void _connect(Request& r, const S Value& body_code=params->as_junction(1, "body must be code"); Table *protocol2driver_and_client= - static_cast(r.classes_conf.get(OP->name())); + static_cast
(r.classes_conf.get(r.OP.name())); // connect SQL_Connection& connection=SQL_driver_manager->get_connection( @@ -380,7 +376,7 @@ MOP::MOP(Pool& apool) : Methoded(apool), // constructor & configurator Methoded *MOP_create(Pool& pool) { - return OP=new(pool) MOP(pool); + return new(pool) MOP(pool); }