Tagger *createTagger(const char *argv) { TaggerImpl *tagger = new TaggerImpl(); if (!tagger->open(argv)) { errorStr = tagger->what(); delete tagger; return 0; } return tagger; }
Tagger *createTagger(const char *argv) { TaggerImpl *tagger = new TaggerImpl(); if (!tagger->open(argv)) { setGlobalError(tagger->what()); delete tagger; return 0; } return tagger; }