From f95aae747dc2b2511bd934d3084b24c77e895cf0 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:59:47 +0000 Subject: Utilisateur : Fcolin Date : 6/06/01 Heure : 8:50 Archivé dans $/Ivy Commentaire: Pb avec vector resize reserve et ajout de regexp !!! => replace list (vss 10) --- Ivy/IvyApplication.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx index 2d1f937..6d3b7ea 100644 --- a/Ivy/IvyApplication.cxx +++ b/Ivy/IvyApplication.cxx @@ -135,10 +135,10 @@ void IvyApplication::OnReceive(char * line) TRACE("IvyApplication %s\n",err.c_str()); return; } - regexp_in.reserve( id +1 ); + regexp_in.resize( id +1 ); regexp_in[ id ] = exp; #ifdef IVY_DEBUG - TRACE("Adding regexp[%d]='%s'\n",id,arg); + TRACE("Adding regexp[%d]='%s' size:%d\n",id,arg,regexp_in.size()); #endif //IVY_DEBUG break; case DelRegexp: -- cgit v1.1