* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
void setViewer(string const & v) {
viewer_ = v;
}
- friend bool operator<(Format const & a, Format const & b) {
- return compare_no_case(a.prettyname(),b.prettyname()) < 0;
- }
private:
string name_;
///
};
+inline
+bool operator<(Format const & a, Format const & b)
+{
+ return compare_no_case(a.prettyname(),b.prettyname()) < 0;
+}
+
+
///
class Formats {
public:
///
typedef FormatList::const_iterator const_iterator;
///
- Format const & Get(int i) const {
+ Format const & Get(FormatList::size_type i) const {
return formatlist[i];
}
///