'using namespace std' instead of 'using std::xxx'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-12 10:16:00 +00:00
parent 15eae2fe68
commit 9383f4c3c6
257 changed files with 322 additions and 1134 deletions

View File

@ -20,7 +20,7 @@
#include <boost/assert.hpp>
using std::string;
using namespace std;
namespace lyx {

View File

@ -18,7 +18,7 @@
#include <istream>
using std::string;
using namespace std;
namespace lyx {

View File

@ -30,11 +30,7 @@
#include "boost/regex.hpp"
using std::string;
using std::vector;
using std::pair;
using std::endl;
using std::set;
using namespace std;
namespace lyx {

View File

@ -16,7 +16,7 @@
#include <ostream>
using std::ostream;
using namespace std;
namespace lyx {

View File

@ -17,7 +17,7 @@
#include <algorithm>
using std::string;
using namespace std;
namespace lyx {

View File

@ -106,21 +106,7 @@
#include <sstream>
#include <fstream>
using std::endl;
using std::for_each;
using std::make_pair;
using std::ios;
using std::map;
using std::ostream;
using std::ostringstream;
using std::ofstream;
using std::ifstream;
using std::pair;
using std::stack;
using std::vector;
using std::string;
using std::time_t;
using namespace std;
namespace lyx {

View File

@ -35,17 +35,7 @@
using boost::bind;
using std::auto_ptr;
using std::endl;
using std::equal_to;
using std::find;
using std::find_if;
using std::for_each;
using std::string;
using std::vector;
using std::back_inserter;
using std::transform;
using namespace std;
namespace lyx {

View File

@ -53,16 +53,8 @@
#include <algorithm>
#include <sstream>
using std::count;
using std::endl;
using std::find;
using std::string;
using std::istringstream;
using std::make_pair;
using std::ostream;
using std::ostringstream;
using std::pair;
using std::string;
using namespace std;
using lyx::support::FileName;
using lyx::support::libFileSearch;
using lyx::support::bformat;

View File

@ -80,17 +80,7 @@
#include <iterator>
#include <vector>
using std::distance;
using std::endl;
using std::ifstream;
using std::istringstream;
using std::istream_iterator;
using std::make_pair;
using std::min;
using std::max;
using std::mem_fun_ref;
using std::string;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -20,7 +20,7 @@
#include <boost/assert.hpp>
using std::string;
using namespace std;
namespace lyx {

View File

@ -23,9 +23,7 @@
#include <boost/format.hpp>
using std::getline;
using std::string;
using namespace std;
namespace lyx {

View File

@ -22,8 +22,7 @@
#include <ostream>
#include <string>
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -30,18 +30,7 @@
#include <iomanip>
#ifndef CXX_GLOBAL_CSTD
using std::floor;
#endif
using std::max;
using std::min;
using std::setw;
using std::istringstream;
using std::ostringstream;
using std::string;
using std::endl;
using namespace std;
namespace lyx {

View File

@ -36,11 +36,7 @@
#include "support/Path.h"
#include "support/Systemcall.h"
using std::find_if;
using std::string;
using std::vector;
using std::distance;
using namespace std;
namespace lyx {

View File

@ -35,7 +35,7 @@
#include <map>
#include <sstream>
using std::string;
using namespace std;
namespace lyx {

View File

@ -23,9 +23,7 @@
#include <sstream>
using std::endl;
using std::ostringstream;
using std::string;
using namespace std;
namespace lyx {

View File

@ -53,12 +53,7 @@
#include <limits>
#include <map>
using std::string;
using std::vector;
using std::endl;
using std::min;
using std::for_each;
using namespace std;
namespace lyx {

View File

@ -58,13 +58,7 @@
#include <string>
using std::endl;
using std::for_each;
using std::make_pair;
using std::pair;
using std::vector;
using std::string;
using namespace std;
namespace lyx {

View File

@ -24,13 +24,7 @@
#include <fstream>
using std::endl;
using std::flush;
using std::getline;
using std::string;
using std::ofstream;
using std::ifstream;
using namespace std;
namespace lyx {

View File

@ -38,16 +38,7 @@
#include <fstream>
#include <utility>
using std::ofstream;
using std::endl;
using std::vector;
using std::string;
using std::pair;
using std::make_pair;
using std::istream;
using std::ostream;
using std::getline;
using std::istringstream;
using namespace std;
namespace lyx {

View File

@ -27,12 +27,7 @@
#include <sstream>
#ifndef CXX_GLOBAL_CSTD
using std::strtol;
#endif
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -12,8 +12,7 @@
#include "ErrorList.h"
using std::string;
using namespace std;
namespace lyx {

View File

@ -29,10 +29,7 @@
#include <algorithm>
using std::find;
using std::string;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -13,8 +13,7 @@
#include "FloatList.h"
#include "Floating.h"
using std::string;
using namespace std;
namespace lyx {

View File

@ -14,7 +14,7 @@
#include "Floating.h"
using std::string;
using namespace std;
namespace lyx {

View File

@ -31,17 +31,7 @@
#include "support/gettext.h"
#include "support/lstrings.h"
using std::endl;
using std::string;
using std::ostream;
using std::ostringstream;
using std::istringstream;
using std::pair;
#ifndef CXX_GLOBAL_CSTD
using std::strlen;
#endif
using namespace std;
namespace lyx {

View File

@ -20,8 +20,7 @@
#include <ostream>
using std::endl;
using namespace std;
namespace lyx {

View File

@ -24,7 +24,7 @@
#include <algorithm>
using std::distance;
using namespace std;
namespace lyx {

View File

@ -25,10 +25,7 @@
#include "support/os.h"
#include "support/Systemcall.h"
using std::find_if;
using std::string;
using std::distance;
using namespace std;
namespace lyx {

View File

@ -16,11 +16,7 @@
#include <sstream>
#include <vector>
using std::getline;
using std::istringstream;
using std::vector;
using std::string;
using namespace std;
namespace lyx {

View File

@ -15,10 +15,7 @@
#include <algorithm>
using std::vector;
using std::reverse;
using std::fill;
using namespace std;
namespace lyx {

View File

@ -36,16 +36,7 @@
using boost::shared_ptr;
#ifndef CXX_GLOBAL_CSTD
using std::strcpy;
using std::strlen;
using std::strpbrk;
#endif
using std::endl;
using std::max;
using std::string;
using namespace std;
namespace lyx {

View File

@ -20,8 +20,7 @@
#include "insets/InsetBranch.h"
using std::lower_bound;
using namespace std;
namespace lyx {

View File

@ -27,11 +27,7 @@
#include <sstream>
#include <utility>
using std::endl;
using std::ios;
using std::ofstream;
using std::string;
using namespace std;
namespace lyx {

View File

@ -20,9 +20,7 @@
#include "frontends/KeySymbol.h"
using std::make_pair;
using std::string;
using namespace std;
namespace lyx {

View File

@ -36,17 +36,7 @@
using boost::regex;
using boost::smatch;
#ifndef CXX_GLOBAL_CSTD
using std::sscanf;
#endif
using std::endl;
using std::getline;
using std::string;
using std::ifstream;
using std::set;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -31,14 +31,7 @@
#include "support/docstream.h"
#include "support/filetools.h"
using std::endl;
using std::find;
using std::string;
using std::list;
using std::ostream;
using std::ostringstream;
using std::set;
using namespace std;
namespace lyx {

View File

@ -23,9 +23,7 @@
#include <ostream>
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -23,8 +23,7 @@
#include <ostream>
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -23,12 +23,10 @@
#include <sstream>
#include <iomanip>
using namespace std;
namespace lyx {
using std::ostringstream;
using std::string;
/////////////////////////////////////////////////////////////////////
//

View File

@ -33,6 +33,7 @@
#include <sstream>
#include <vector>
using namespace std;
namespace lyx {
@ -47,15 +48,6 @@ using support::split;
using support::subst;
using support::trim;
using std::endl;
using std::getline;
using std::lower_bound;
using std::sort;
using std::string;
using std::ios;
using std::istream;
using std::ostream;
//////////////////////////////////////////////////////////////////////
//

View File

@ -69,18 +69,7 @@
#include <string>
#include <vector>
using std::endl;
using std::for_each;
using std::map;
using std::make_pair;
using std::string;
using std::vector;
#ifndef CXX_GLOBAL_CSTD
using std::exit;
using std::signal;
using std::system;
#endif
using namespace std;
namespace lyx {

View File

@ -22,14 +22,13 @@
#include <boost/assert.hpp>
using namespace std;
namespace lyx {
using support::split;
using support::trim;
using std::string;
/*
NAMING RULES FOR USER-COMMANDS

View File

@ -95,14 +95,7 @@
#include <sstream>
using std::endl;
using std::make_pair;
using std::pair;
using std::string;
using std::istringstream;
using std::ostringstream;
using std::find;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -40,6 +40,7 @@
#include "support/os.h"
#include "support/userinfo.h"
using namespace std;
namespace lyx {
@ -53,15 +54,6 @@ using support::getEnv;
using support::libFileSearch;
using support::token;
using std::cout;
using std::endl;
using std::ios;
using std::ofstream;
using std::ostream;
using std::string;
namespace {
// when adding something to this array keep it sorted!

View File

@ -27,6 +27,7 @@
#include "support/lstrings.h"
#include "support/lyxlib.h"
using namespace std;
namespace lyx {
@ -35,8 +36,6 @@ using support::FileName;
using support::makeAbsPath;
using support::tempName;
using std::string;
namespace Alert = frontend::Alert;

View File

@ -48,6 +48,8 @@
#include <algorithm>
#include <ostream>
using namespace std;
using boost::bind;
namespace lyx {
@ -56,18 +58,6 @@ using support::contains;
using support::makeDisplayPath;
using support::token;
using boost::bind;
using std::auto_ptr;
using std::endl;
using std::equal_to;
using std::find_if;
using std::max;
using std::sort;
using std::string;
using std::vector;
using std::stack;
namespace {
class MenuNamesEqual : public std::unary_function<Menu, bool> {

View File

@ -22,11 +22,10 @@
#include <boost/assert.hpp>
using namespace std;
namespace lyx {
using std::string;
MetricsBase::MetricsBase()
: bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"),

View File

@ -22,10 +22,7 @@
#include <algorithm>
#include <ostream>
using std::endl;
using std::map;
using std::string;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -20,8 +20,7 @@
#include <fstream>
#include <sstream>
using std::ios;
using std::string;
using namespace std;
namespace lyx {

View File

@ -20,13 +20,11 @@
#include <sstream>
#include <string>
using namespace std;
namespace lyx {
using std::ostream;
using std::ostringstream;
using std::string;
const string PDFOptions::pagemode_fullscreen("FullScreen");
bool PDFOptions::empty() const

View File

@ -24,12 +24,10 @@ extern "C" {
#include <boost/assert.hpp>
using namespace std;
namespace lyx {
using std::endl;
using std::string;
PSpell::PSpell(BufferParams const &, string const & lang)
: els(0), spell_error_object(0)

View File

@ -58,9 +58,7 @@
#include <sstream>
#include <vector>
using std::endl;
using std::string;
using std::ostream;
using namespace std;
namespace lyx {
@ -214,14 +212,6 @@ public:
};
using std::endl;
using std::upper_bound;
using std::lower_bound;
using std::string;
// Initialization of the counter for the paragraph id's,
unsigned int Paragraph::Private::paragraph_id = 0;

View File

@ -57,6 +57,7 @@
#include <stack>
#include <sstream>
using namespace std;
namespace lyx {
@ -64,14 +65,6 @@ using lyx::support::contains;
using lyx::support::rsplit;
using support::subst;
using std::distance;
using std::endl;
using std::list;
using std::stack;
using std::string;
using std::ostream;
using std::ostringstream;
ParagraphMetrics::ParagraphMetrics(Paragraph const & par): position_(-1), par_(&par)
{

View File

@ -27,16 +27,12 @@
#include <sstream>
using lyx::support::rtrim;
using std::istringstream;
using std::ostream;
using std::ostringstream;
using std::string;
using namespace std;
namespace lyx {
using support::rtrim;
//NOTE The order of these MUST be the same as in Layout.h.
static char const * const string_align[] = {
"block", "left", "right", "center", "default", ""

View File

@ -17,9 +17,9 @@
#include <boost/assert.hpp>
namespace lyx {
using namespace std;
using std::string;
namespace lyx {
PrinterParams::PrinterParams(Target t,

View File

@ -12,10 +12,10 @@
#include "Section.h"
using namespace std;
namespace lyx {
using std::string;
string const & Section::name() const
{

View File

@ -58,6 +58,7 @@
#endif
#include <fcntl.h>
using namespace std;
namespace lyx {
@ -66,9 +67,6 @@ using support::FileName;
using support::rtrim;
using support::split;
using std::endl;
using std::string;
/////////////////////////////////////////////////////////////////////
//

View File

@ -39,9 +39,7 @@
using boost::shared_ptr;
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -21,23 +21,7 @@
#include <algorithm>
#include <iterator>
using lyx::support::absolutePath;
using lyx::support::addName;
using lyx::support::FileName;
using lyx::support::package;
using std::vector;
using std::getline;
using std::string;
using std::ifstream;
using std::ofstream;
using std::istream;
using std::ostream;
using std::endl;
using std::istringstream;
using std::copy;
using std::find;
using std::ostream_iterator;
using namespace std;
namespace {
@ -53,6 +37,11 @@ string const sec_toolbars = "[toolbars]";
namespace lyx {
using support::absolutePath;
using support::addName;
using support::FileName;
using support::package;
LastFilesSection::LastFilesSection(unsigned int num) :
default_num_last_files(4),
absolute_max_last_files(100)

View File

@ -18,15 +18,11 @@
#include <sstream>
#include <string>
using namespace std;
namespace lyx {
using std::ostream;
using std::ostringstream;
using std::string;
string const Spacing::spacing_string[]
= {"single", "onehalf", "double", "other"};

View File

@ -15,11 +15,10 @@
#include "support/gettext.h"
#include "support/docstring.h"
using namespace std;
namespace lyx {
using std::string;
bool SpellBase::alive()
{

View File

@ -73,8 +73,7 @@
#include <sstream>
using std::auto_ptr;
using std::string;
using namespace std;
namespace lyx {

View File

@ -61,12 +61,7 @@
#include <sstream>
using std::endl;
using std::ostringstream;
using std::string;
using std::max;
using std::min;
using std::istringstream;
using namespace std;
namespace lyx {

View File

@ -74,10 +74,7 @@
#include <clocale>
#include <sstream>
using std::endl;
using std::string;
using std::istringstream;
using std::ostringstream;
using namespace std;
namespace lyx {

View File

@ -35,11 +35,7 @@
#include <sstream>
using std::endl;
using std::find_if;
using std::remove_if;
using std::string;
using std::ostream;
using namespace std;
namespace lyx {

View File

@ -35,15 +35,7 @@ using boost::bind;
using boost::regex;
using boost::smatch;
using std::endl;
using std::equal_to;
using std::find_if;
using std::make_pair;
using std::sort;
using std::string;
using std::pair;
using std::ifstream;
using namespace std;
// Gets textclass number from name
pair<bool, textclass_type> const

View File

@ -49,10 +49,7 @@
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
using std::make_pair;
using std::max;
using std::min;
using std::pair;
using namespace std;
namespace lyx {

View File

@ -20,15 +20,13 @@
#include <algorithm>
using namespace std;
namespace lyx {
#ifdef HAVE_LIBAIKSAURUS
using support::bformat;
using std::sort;
using std::string;
Thesaurus::Thesaurus()
: aik_(new Aiksaurus)

View File

@ -30,8 +30,7 @@
#include "support/debug.h"
#include "support/docstream.h"
using std::string;
using namespace std;
namespace lyx {

View File

@ -22,17 +22,13 @@
#include <boost/bind.hpp>
#include <algorithm>
using namespace std;
namespace lyx {
using support::compare_ascii_no_case;
using support::getVectorFromString;
using std::make_pair;
using std::string;
using std::vector;
using std::find_if;
namespace {
class ToolbarNamesEqual

View File

@ -27,17 +27,14 @@
#include "support/convert.h"
#include "support/docstream.h"
using namespace std;
namespace lyx {
using support::split;
using support::contains;
using support::libFileSearch;
using std::endl;
using std::string;
using std::pair;
using std::map;
/////////////////////////////////////////////////////////////////////
//

View File

@ -36,7 +36,7 @@
#include <algorithm>
#include <ostream>
using std::advance;
using namespace std;
namespace lyx {

View File

@ -23,6 +23,11 @@
#include <fstream>
using namespace std;
using boost::regex;
using boost::regex_match;
using boost::smatch;
namespace lyx {
@ -37,20 +42,6 @@ using support::rtrim;
using support::split;
using support::Systemcall;
using boost::regex;
using boost::regex_match;
using boost::smatch;
#ifndef CXX_GLOBAL_CSTD
using std::asctime;
using std::gmtime;
#endif
using std::endl;
using std::getline;
using std::string;
using std::ifstream;
int VCS::doVCCommand(string const & cmd, FileName const & path)
{

View File

@ -23,6 +23,7 @@
#include "support/convert.h"
#include "support/lstrings.h"
using namespace std;
namespace lyx {
@ -32,8 +33,6 @@ using support::ltrim;
using support::prefixIs;
using support::rtrim;
using std::string;
namespace {

View File

@ -14,6 +14,7 @@
#include "Variables.h"
#include "support/LRegex.h"
using namespace std;
void Variables::set(string const & var, string const & val)
{
@ -67,10 +68,7 @@ string const Variables::expand(string const & s) const
#include <iostream>
namespace lyx {
using std::endl;
using std::cout;
int main() {
Variables vars;

View File

@ -20,7 +20,7 @@
#include <exception>
#include <iomanip>
using std::endl;
using namespace std;
using lyx::lyxerr;
using lyx::LyX;

View File

@ -18,18 +18,15 @@
#include <cerrno>
#include <ostream>
using namespace std;
namespace lyx {
using support::package;
using std::endl;
using std::string;
#ifdef ENABLE_NLS
#if 0
#include <locale>

View File

@ -19,7 +19,6 @@
#include <exception>
#include <ostream>
using std::endl;
namespace boost {

View File

@ -54,23 +54,16 @@
#include <map>
#include <iostream>
using namespace std;
using ::boost::scoped_ptr;
namespace fs = ::boost::filesystem;
namespace lyx {
using support::FileName;
using support::prefixIs;
using ::boost::scoped_ptr;
namespace fs = ::boost::filesystem;
using std::string;
using std::vector;
using std::cout;
using std::cerr;
using std::cin;
using std::endl;
namespace support {
string itoa(unsigned int i)

View File

@ -21,6 +21,7 @@
#include <iostream>
#include <iomanip>
using namespace std;
namespace lyx {
@ -28,10 +29,6 @@ using support::ascii_lowercase;
using support::bformat;
using support::isStrInt;
using std::setw;
using std::string;
using std::ostream;
namespace {
struct ErrorItem {

View File

@ -14,6 +14,7 @@
#include "support/gettext.h"
#include "Messages.h"
using namespace std;
namespace lyx {
@ -22,8 +23,6 @@ namespace lyx {
# include <locale.h>
#endif
using std::string;
namespace {

View File

@ -67,10 +67,7 @@
#include <sstream>
using std::auto_ptr;
using std::endl;
using std::string;
using namespace std;
namespace lyx {

View File

@ -17,8 +17,9 @@
#include "insets/InsetFloat.h"
#include "support/lstrings.h"
using namespace std;
using lyx::support::contains;
using std::string;
//namespace lyx {

View File

@ -31,8 +31,7 @@
#include <iomanip>
using std::endl;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -71,11 +71,7 @@
#include <exception>
using std::endl;
using std::map;
using std::string;
using std::vector;
using namespace std;
namespace lyx {

View File

@ -36,10 +36,7 @@
#include <QCloseEvent>
#include <QLineEdit>
using std::pair;
using std::string;
using std::vector;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -31,9 +31,7 @@
#include <QLineEdit>
#include <QCloseEvent>
using std::string;
using std::vector;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -27,8 +27,7 @@
#include <QPushButton>
#include <QCloseEvent>
using std::string;
using std::vector;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -23,9 +23,7 @@
#include <QCloseEvent>
using std::vector;
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -40,9 +40,7 @@
#include <string>
#include <vector>
using std::string;
using std::vector;
using std::pair;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -24,15 +24,15 @@
#include "support/lstrings.h"
using lyx::support::internalLineEnding;
using lyx::support::externalLineEnding;
using std::string;
using namespace std;
static char const * const mime_type = "application/x-lyx";
namespace lyx {
using support::internalLineEnding;
using support::externalLineEnding;
namespace frontend {
GuiClipboard::GuiClipboard()

View File

@ -37,11 +37,7 @@
#include <QToolTip>
#include <QVBoxLayout>
using std::back_inserter;
using std::transform;
using std::string;
using std::vector;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -25,7 +25,7 @@
// Set to zero if unicode symbols are preferred.
#define USE_PIXMAP 1
using std::string;
using namespace std;
static char const * latex_delimiters[] = {
"(", ")", "{", "}", "[", "]",

View File

@ -21,7 +21,7 @@
#include <QSettings>
#include <QShowEvent>
using std::string;
using namespace std;
namespace lyx {
namespace frontend {
@ -115,8 +115,7 @@ void GuiDialog::updateView()
#include "FuncRequest.h"
#include "insets/InsetCommand.h"
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -55,13 +55,7 @@
#include <algorithm>
#include <sstream>
using std::distance;
using std::make_pair;
using std::pair;
using std::vector;
using std::string;
using std::ostringstream;
using std::sort;
using namespace std;
///
template<class Pair>

View File

@ -28,8 +28,7 @@
#include <QPushButton>
#include <QCloseEvent>
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -45,10 +45,7 @@
#include <QTabWidget>
#include <QTextBrowser>
using std::advance;
using std::vector;
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -20,8 +20,7 @@
#include <QCloseEvent>
#include <QPushButton>
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

View File

@ -22,7 +22,7 @@
#include <boost/assert.hpp>
using std::string;
using namespace std;
namespace lyx {
namespace frontend {

Some files were not shown because too many files have changed in this diff Show More