--- parser3/src/main/pa_dictionary.C 2001/10/05 16:12:40 1.7 +++ parser3/src/main/pa_dictionary.C 2002/02/20 10:40:08 1.13 @@ -1,10 +1,10 @@ /** @file Parser: dictionary class impl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_dictionary.C,v 1.7 2001/10/05 16:12:40 parser Exp $ + $Id: pa_dictionary.C,v 1.13 2002/02/20 10:40:08 paf Exp $ */ #include "pa_dictionary.h" @@ -17,9 +17,9 @@ void Dictionary::add_first(Array::Item * const String& a=*row->get_string(0); const String& b=*row->get_string(1); // empty 'a' check - if(a.size()==0) { + if(a.is_empty()) { Pool& pool=self.pool(); - PTHROW(0, 0, + throw Exception(0, 0, &a, "dictionary table 'from' column elements must not be empty"); } @@ -33,7 +33,6 @@ void Dictionary::add_first(Array::Item * self.constructor_line++; } - Dictionary::Dictionary(Table& atable, double amin_ratio) : Pooled(atable.pool()), table(atable), fmax_ratio(amin_ratio) {