From 346506a31d54c096b25bd7d106af5ffcd44a3d7a Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 1 Feb 2006 14:18:20 +0000 Subject: [PATCH] use string::erase() not clear() --- src/common/textsplit.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/textsplit.cpp b/src/common/textsplit.cpp index bc19d225..53cd3462 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.19 2006-01-30 09:28:16 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.20 2006-02-01 14:18:20 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -179,9 +179,9 @@ inline bool TextSplit::doemit(bool spanerase, int bp) // Adjust state wordpos++; - word.clear(); + word.erase(); if (spanerase) { - span.clear(); + span.erase(); spanpos = wordpos; } @@ -212,8 +212,8 @@ bool TextSplit::text_to_words(const string &in) setcharclasses(); - span.clear(); - word.clear(); // Current word: no punctuation at all in there + span.erase(); + word.erase(); // Current word: no punctuation at all in there number = false; wordpos = spanpos = charpos = 0;