cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21837 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-27 22:19:36 +00:00
parent ab16324b4a
commit 7c108afd14
14 changed files with 12 additions and 52 deletions

View File

@ -29,6 +29,8 @@
#include <QLineEdit> #include <QLineEdit>
#include <QInputDialog> #include <QInputDialog>
#include <iomanip>
using std::endl; using std::endl;

View File

@ -27,7 +27,6 @@
using lyx::support::internalLineEnding; using lyx::support::internalLineEnding;
using lyx::support::externalLineEnding; using lyx::support::externalLineEnding;
using std::endl;
using std::string; using std::string;
static char const * const mime_type = "application/x-lyx"; static char const * const mime_type = "application/x-lyx";

View File

@ -169,9 +169,8 @@ void GuiDialog::showData(string const & data)
return; return;
if (!initialiseParams(data)) { if (!initialiseParams(data)) {
lyxerr << "Dialog \"" << name() LYXERR(Debug::ANY, "Dialog \"" << name()
<< "\" failed to translate the data " << "\" failed to translate the data string passed to show()");
"string passed to show()" << std::endl;
return; return;
} }
@ -188,8 +187,8 @@ void GuiDialog::updateData(string const & data)
return; return;
if (!initialiseParams(data)) { if (!initialiseParams(data)) {
lyxerr << "Dialog \"" << name() LYXERR(Debug::ANY, "Dialog \"" << name()
<< "\" could not be initialized" << std::endl; << "\" could not be initialized");
return; return;
} }

View File

@ -28,7 +28,6 @@
#include <QPushButton> #include <QPushButton>
#include <QCloseEvent> #include <QCloseEvent>
using std::endl;
using std::string; using std::string;
@ -115,7 +114,7 @@ void GuiErrorList::goTo(int item)
ParIterator pit = buf.getParFromID(err.par_id); ParIterator pit = buf.getParFromID(err.par_id);
if (pit == buf.par_iterator_end()) { if (pit == buf.par_iterator_end()) {
lyxerr << "par id " << err.par_id << " not found" << endl; LYXERR(Debug::ANY, "par id " << err.par_id << " not found");
return; return;
} }

View File

@ -29,7 +29,6 @@
#include <QFontInfo> #include <QFontInfo>
#include <QFontDatabase> #include <QFontDatabase>
using std::endl;
using std::make_pair; using std::make_pair;
using std::pair; using std::pair;

View File

@ -1,5 +1,5 @@
/** /**
* \file qt4/KeySymbolFactory.cpp * \file qt4/GuiKeySymbol.cpp
* This file is part of LyX, the document processor. * This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING. * Licence details can be found in the file COPYING.
* *
@ -17,10 +17,6 @@
#include "debug.h" #include "debug.h"
#include "support/lstrings.h"
#include "support/environment.h"
#include "support/unicode.h"
#include "Encoding.h" #include "Encoding.h"
#include "Language.h" #include "Language.h"
@ -29,17 +25,15 @@
#include <QEvent> #include <QEvent>
#include <QTextCodec> #include <QTextCodec>
#include "boost/assert.hpp"
#include <map> #include <map>
namespace lyx {
using std::endl;
using std::string; using std::string;
using std::map; using std::map;
using lyx::support::contains;
using lyx::support::getEnv;
namespace lyx {
#if 0 #if 0
static char encode(string const & encoding, QString const & str) static char encode(string const & encoding, QString const & str)

View File

@ -19,7 +19,6 @@
#include "GuiPopupMenu.h" #include "GuiPopupMenu.h"
#include "qt_helpers.h" #include "qt_helpers.h"
#include "support/lstrings.h"
#include "MenuBackend.h" #include "MenuBackend.h"
@ -28,9 +27,6 @@
#include <QCursor> #include <QCursor>
#include <QMenuBar> #include <QMenuBar>
using std::pair;
using std::string;
using std::endl;
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {

View File

@ -24,12 +24,6 @@
#include "debug.h" #include "debug.h"
using std::make_pair;
using std::string;
using std::pair;
using std::endl;
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {

View File

@ -24,8 +24,6 @@
#include <QString> #include <QString>
using std::endl;
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {

View File

@ -30,15 +30,7 @@
#include "support/docstring.h" #include "support/docstring.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include <QProgressBar>
#include <QLineEdit>
#include <QPushButton>
#include <QListWidget>
#include <QListWidgetItem> #include <QListWidgetItem>
#include <QCloseEvent>
#include <QSyntaxHighlighter>
#include <QTextCharFormat>
#include <QTextDocument>
#if defined(USE_ASPELL) #if defined(USE_ASPELL)
# include "ASpell_local.h" # include "ASpell_local.h"
@ -54,9 +46,6 @@
#include "frontends/alert.h" #include "frontends/alert.h"
using std::advance;
using std::distance;
using std::endl;
using std::string; using std::string;

View File

@ -35,7 +35,6 @@
#include <algorithm> #include <algorithm>
using std::endl;
using std::string; using std::string;

View File

@ -31,7 +31,6 @@
#include "ToolbarBackend.h" #include "ToolbarBackend.h"
using std::endl;
using std::string; using std::string;
namespace lyx { namespace lyx {

View File

@ -17,8 +17,6 @@
#include <boost/assert.hpp> #include <boost/assert.hpp>
using std::endl;
using std::map;
using std::max; using std::max;
using std::min; using std::min;

View File

@ -19,14 +19,9 @@
#include "debug.h" #include "debug.h"
#include <QHeaderView> #include <QHeaderView>
#include <QPushButton>
#include <QTreeWidgetItem>
#include <vector> #include <vector>
using std::endl;
using std::vector;
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {
@ -219,7 +214,7 @@ void TocWidget::updateView()
void TocWidget::updateGui() void TocWidget::updateGui()
{ {
vector<docstring> const & type_names = form_.typeNames(); std::vector<docstring> const & type_names = form_.typeNames();
if (type_names.empty()) { if (type_names.empty()) {
enableControls(false); enableControls(false);
typeCO->clear(); typeCO->clear();