From: Lars Gullik Bjønnes Date: Fri, 1 Aug 2003 21:18:49 +0000 (+0000) Subject: Always use std::endl with lyxerr. X-Git-Tag: 1.6.10~16353 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ffe20e2e9cea00e990f1561ecdbf9bc088c4cc5f;p=features.git Always use std::endl with lyxerr. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7480 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 9d830f9994..fa1908d515 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -188,10 +188,10 @@ bool BufferView::Pimpl::loadLyXFile(string const & filename, bool tolastfiles) // get absolute path of file and add ".lyx" to the filename if // necessary string s = FileSearch(string(), filename, "lyx"); - + bool const found = !s.empty(); - if (!found) + if (!found) s = filename; // file already open? @@ -404,14 +404,14 @@ int BufferView::Pimpl::resizeCurrentBuffer() bv_->text->fullRebreak(); update(); } else { - lyxerr << "text not available!\n"; + lyxerr << "text not available!" << endl; // See if we have a text in TextCache that fits // the new buffer_ with the correct width. bv_->text = textcache.findFit(buffer_, workarea().workWidth()); if (bv_->text) { - lyxerr << "text in cache!\n"; + lyxerr << "text in cache!" << endl; if (lyxerr.debugging()) { - lyxerr << "Found a LyXText that fits:\n"; + lyxerr << "Found a LyXText that fits:" << endl; textcache.show(lyxerr, make_pair(buffer_, make_pair(workarea().workWidth(), bv_->text))); } // Set the owner of the newly found text @@ -421,7 +421,7 @@ int BufferView::Pimpl::resizeCurrentBuffer() resizeInsets(bv_); } else { - lyxerr << "no text in cache!\n"; + lyxerr << "no text in cache!" << endl; bv_->text = new LyXText(bv_); resizeInsets(bv_); bv_->text->init(bv_); @@ -639,7 +639,7 @@ void BufferView::Pimpl::workAreaResize() void BufferView::Pimpl::update() { - lyxerr << "BufferView::update()\n"; + lyxerr << "BufferView::update()" << endl; screen().redraw(*bv_); } diff --git a/src/ChangeLog b/src/ChangeLog index 273e91fa73..40a5efaf8f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2003-08-01 Lars Gullik Bjønnes + + * BufferView_pimpl.C: _Always_ use std::endl with lyxerr 2003-08-01 André Pönitz @@ -60,10 +63,10 @@ * factory.C: submenu for Note/Comment/Greyedout 2003-07-29 Alfredo Braunstein - + * lyx_main.C (LyX): * BufferView_pimpl.C (loadLyXFile): fix to bugs 1287 and 1297 + ws - + 2003-07-29 Martin Vermeer * LaTeXFeatures.C: