lyxerr.debug() << "Buffer::Buffer()" << endl;
if (read_only || (lyxrc && lyxrc->use_tempdir)) {
tmppath = CreateBufferTmpDir();
- } else tmppath.erase();
+ } else tmppath.clear();
}
// Write out what we've generated so far...and reset LFile
fwrite(LFile.c_str(), sizeof(char), LFile.length(), file);
- LFile.erase();
+ LFile.clear();
// Now insert the LyX specific LaTeX commands...
string preamble, tmppreamble;
}
LFile += ftnote;
texrow += ft_texrow;
- ftnote.erase();
+ ftnote.clear();
ft_texrow.reset();
ftcount = 0;
}
// LFile.length() in a future revision. ARRae
fwrite(LFile.c_str(), sizeof(char),
LFile.length(), file);
- LFile.erase();
+ LFile.clear();
loop_count = 0;
}
}
// Write out what we've generated...and reset LFile
fwrite(LFile.c_str(), sizeof(char), LFile.length(), file);
- LFile.erase();
+ LFile.clear();
// tex_code_break_column's value is used to decide
// if we are in batchmode or not (within mathed_write()
/* environment tag closing */
for( ;depth > par->depth; depth--) {
sgmlCloseTag(file,depth,environment_stack[depth]);
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
}
/* write opening SGML tags */
if(depth == par->depth
&& !environment_stack[depth].empty()) {
sgmlCloseTag(file,depth,environment_stack[depth]);
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
if(depth)
depth--;
else
fprintf(file, "</p>");
}
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
sgmlOpenTag(file,depth, style->latexname);
break;
&& !environment_stack[depth].empty()) {
sgmlCloseTag(file,depth,environment_stack[depth]);
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
}
if (depth < par->depth) {
depth = par->depth;
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
}
if (environment_stack[depth] != style->latexname) {
if(depth==0) {
if(inner_span) {
if(!tmp_par.empty()) {
fprintf(file,"%s",tmp_par.c_str());
- tmp_par.erase();
+ tmp_par.clear();
sgmlCloseTag(file,depth+1,inner_tag);
sgmlOpenTag(file,depth+1,inner_tag);
}
if(!inner_tag.empty()) sgmlCloseTag(file,depth+1,inner_tag);
if(!extra_par.empty()) fprintf(file,"%s",extra_par.c_str());
if(!tag.empty()) sgmlCloseTag(file,depth,tag);
- extra_par.erase();
+ extra_par.clear();
switch (par->footnotekind) {
case LyXParagraph::FOOTNOTE:
if ((present == TAB_LIKE) || (present == FIG_LIKE)) {
DocBookHandleCaption(file, inner_tag, depth,
desc_on, par);
- inner_tag.erase();
+ inner_tag.clear();
} else {
sgmlOpenTag(file,depth+1,inner_tag);
}
}
sgmlCloseTag(file,depth+command_depth,
environment_stack[depth]);
- environment_stack[depth].erase();
- environment_inner[depth].erase();
+ environment_stack[depth].clear();
+ environment_inner[depth].clear();
}
if(depth == par->depth
sgmlCloseTag(file,depth+command_depth,
environment_stack[depth]);
- environment_stack[depth].erase();
- environment_inner[depth].erase();
+ environment_stack[depth].clear();
+ environment_inner[depth].clear();
}
// Write opening SGML tags.
case LATEX_ITEM_ENVIRONMENT:
if (depth < par->depth) {
depth = par->depth;
- environment_stack[depth].erase();
+ environment_stack[depth].clear();
}
if (environment_stack[depth] != style->latexname) {