fix compiler warnings in pedantic mode: remove trailing comma after last enum member

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36923 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-12-17 19:56:51 +00:00
parent 4fe5321be9
commit c7e6a677c4
15 changed files with 18 additions and 18 deletions

View File

@ -133,8 +133,8 @@ public:
* FIXME: replace this method with support/FileMonitor.
*/
enum CheckMethod {
checksum_method, ///< Use file checksum
timestamp_method, ///< Use timestamp, and checksum if timestamp has changed
checksum_method, ///< Use file checksum
timestamp_method ///< Use timestamp, and checksum if timestamp has changed
};
///

View File

@ -825,7 +825,7 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
// Now read the encodings
enum {
et_encoding = 1,
et_end,
et_end
};
LexerKeyword encodingtags[] = {

View File

@ -33,7 +33,7 @@ public:
/// Some formats are both (e.g. pdf), they have this flag set.
document = 1,
/// Set if this format can contain vector graphics.
vector = 2,
vector = 2
};
///
Format(std::string const & n, std::string const & e, std::string const & p,

View File

@ -247,7 +247,7 @@ bool KeyMap::read(FileName const & bind_file, KeyMap * unbind_map)
enum {
BN_BIND,
BN_BINDFILE,
BN_UNBIND,
BN_UNBIND
};
LexerKeyword bindTags[] = {

View File

@ -37,7 +37,7 @@ public:
Math, //< Mathematics
Buffer, //< Buffer and window related
Layout, //< Font, Layout and textclass related
System, //< Lyx preference, server etc
System //< Lyx preference, server etc
};
private:
@ -65,7 +65,7 @@ public:
NoUpdate = 8, //< Does not (usually) require update
SingleParUpdate = 16, //< Usually only requires this par updated
AtPoint = 32, //< dispatch first to inset at cursor if there is one
NoInternal = 64, //< Cannot be used for internal, non-document Buffers
NoInternal = 64 //< Cannot be used for internal, non-document Buffers
};
LyXAction();

View File

@ -170,7 +170,7 @@ enum {
KCOMB = 1,
KMOD,
KMAP,
KXMOD,
KXMOD
};

View File

@ -161,7 +161,7 @@ public:
to minimise problems to users by supplying an anything-goes policy via a
preprocessor directive.
*/
IgnorantPolicy,
IgnorantPolicy
};
/// Constructor

View File

@ -66,7 +66,7 @@ private:
///
INCLUDE,
///
LISTINGS,
LISTINGS
};
///
void updateLists();

View File

@ -1885,7 +1885,7 @@ void Menus::read(Lexer & lex)
enum {
md_menu,
md_menubar,
md_endmenuset,
md_endmenuset
};
LexerKeyword menutags[] = {

View File

@ -74,7 +74,7 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
TO_EXPORTFORMATS,
TO_IMPORTFORMATS,
TO_UPDATEFORMATS,
TO_VIEWFORMATS,
TO_VIEWFORMATS
};
struct LexerKeyword toolTags[] = {
@ -267,7 +267,7 @@ void Toolbars::readToolbars(Lexer & lex)
{
enum {
TO_TOOLBAR = 1,
TO_ENDTOOLBARSET,
TO_ENDTOOLBARSET
};
struct LexerKeyword toolTags[] = {

View File

@ -82,7 +82,7 @@ public:
enum EntryDirection {
ENTRY_DIRECTION_IGNORE,
ENTRY_DIRECTION_RIGHT,
ENTRY_DIRECTION_LEFT,
ENTRY_DIRECTION_LEFT
};
///
typedef ptrdiff_t difference_type;

View File

@ -227,7 +227,7 @@ enum InsetCode {
///
SCRIPT_CODE,
///
INSET_CODE_SIZE,
INSET_CODE_SIZE
};
} // namespace lyx

View File

@ -88,7 +88,7 @@ public:
MENU_INFO, // Which menu item is used for certain function
ICON_INFO, // which toolbar icon is used for certain function
BUFFER_INFO, // Buffer related information
LYX_INFO, // LyX version information
LYX_INFO // LyX version information
};
///

View File

@ -36,7 +36,7 @@ enum param_type {
INTEGER, // accept an integer
LENGTH, // accept a latex length
ONEOF, // accept one of a few values
SUBSETOF, // accept a string composed of given characters
SUBSETOF // accept a string composed of given characters
};

View File

@ -41,7 +41,7 @@ public:
/// breakable slash
SLASH,
/// protected dash
NOBREAKDASH,
NOBREAKDASH
};
///