mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Use "using" to bring STL templates from the std:: namespace into normal namespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@296 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6fa667dbf2
commit
6899c9c176
@ -1,5 +1,11 @@
|
||||
1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
|
||||
src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
|
||||
src/layout.h, src/text2.C: add 'using' directive to bring the
|
||||
STL templates we need from the std:: namespace to the global one.
|
||||
Needed by DEC cxx in strict ansi mode.
|
||||
|
||||
* src/support/LIstream.h,src/support/LOstream.h,
|
||||
src/support/lyxstring.h,src/table.h,
|
||||
src/lyxlookup.h: do not include <config.h> in header
|
||||
|
@ -12,6 +12,8 @@
|
||||
#define BACK_STACK_H
|
||||
|
||||
#include <stack>
|
||||
using std::stack;
|
||||
|
||||
#include "LString.h"
|
||||
|
||||
// Created by Alejandro Aguilar Sierra, 970806
|
||||
|
@ -21,6 +21,9 @@
|
||||
#include "support/lyxlib.h"
|
||||
#include "support/filetools.h"
|
||||
#include <fstream>
|
||||
using std::make_pair;
|
||||
using std::ofstream;
|
||||
using std::ifstream;
|
||||
|
||||
void DepTable::insert(string const & fi,
|
||||
bool upd,
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "LString.h"
|
||||
#include <map>
|
||||
using std::map;
|
||||
using std::pair;
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
|
@ -29,6 +29,8 @@
|
||||
#include "minibuffer.h"
|
||||
#include "gettext.h"
|
||||
|
||||
using std::make_pair;
|
||||
|
||||
// TODO: in no particular order
|
||||
// - get rid of the extern BufferList and the call to
|
||||
// BufferList::updateIncludedTeXfiles, this should either
|
||||
|
@ -22,7 +22,11 @@
|
||||
#include "LString.h"
|
||||
#include "DepTable.h"
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
|
||||
#include <fstream>
|
||||
using std::ifstream;
|
||||
using std::ofstream;
|
||||
|
||||
class MiniBuffer;
|
||||
|
||||
|
@ -16,7 +16,12 @@
|
||||
#endif
|
||||
|
||||
#include <fstream>
|
||||
using std::ifstream;
|
||||
using std::ofstream;
|
||||
|
||||
#include <algorithm>
|
||||
using std::find;
|
||||
|
||||
#include "support/FileInfo.h"
|
||||
#include "lastfiles.h"
|
||||
#include "debug.h"
|
||||
|
@ -17,6 +17,8 @@
|
||||
#endif
|
||||
|
||||
#include <deque>
|
||||
using std::deque;
|
||||
|
||||
#include "LString.h"
|
||||
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
using std::make_pair;
|
||||
using std::sort;
|
||||
|
||||
#include "definitions.h"
|
||||
#include "layout.h"
|
||||
|
@ -17,6 +17,8 @@
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
using std::pair;
|
||||
|
||||
#include "definitions.h"
|
||||
#include "lyxlex.h"
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <cctype>
|
||||
#include FORMS_H_LOCATION
|
||||
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "lyxtext.h"
|
||||
#pragma implementation "undo.h"
|
||||
@ -33,6 +34,8 @@
|
||||
#include "lyxtext.h"
|
||||
#include "gettext.h"
|
||||
|
||||
using std::copy;
|
||||
|
||||
extern MiniBuffer * minibuffer;
|
||||
|
||||
// Constructor
|
||||
|
Loading…
Reference in New Issue
Block a user