From e6b562d027d508cfa084aae5244c7cd01169c8ad Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 21 Dec 2018 12:14:11 +0100 Subject: [PATCH] Rename ambiguous enum --- src/frontends/qt4/GuiCharacter.cpp | 8 ++++---- src/frontends/qt4/GuiCharacter.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index 54d90ccaac..d2a735957a 100644 --- a/src/frontends/qt4/GuiCharacter.cpp +++ b/src/frontends/qt4/GuiCharacter.cpp @@ -329,7 +329,7 @@ static int findPos2nd(QList

const & vec, B const & val) namespace{ -FontState getBar(FontInfo const & fi) +FontDeco getBar(FontInfo const & fi) { if (fi.underbar() == FONT_ON) return UNDERBAR; @@ -350,7 +350,7 @@ FontState getBar(FontInfo const & fi) } -FontState getStrike(FontInfo const & fi) +FontDeco getStrike(FontInfo const & fi) { if (fi.strikeout() == FONT_ON) return STRIKEOUT; @@ -493,7 +493,7 @@ void GuiCharacter::updateContents() } -void GuiCharacter::setBar(FontInfo & fi, FontState val) +void GuiCharacter::setBar(FontInfo & fi, FontDeco val) { switch (val) { case IGNORE: @@ -531,7 +531,7 @@ void GuiCharacter::setBar(FontInfo & fi, FontState val) } -void GuiCharacter::setStrike(FontInfo & fi, FontState val) +void GuiCharacter::setStrike(FontInfo & fi, FontDeco val) { switch (val) { case IGNORE: diff --git a/src/frontends/qt4/GuiCharacter.h b/src/frontends/qt4/GuiCharacter.h index cece7ba4ad..439dba8767 100644 --- a/src/frontends/qt4/GuiCharacter.h +++ b/src/frontends/qt4/GuiCharacter.h @@ -27,7 +27,7 @@ namespace lyx { namespace frontend { -enum FontState { +enum FontDeco { /// IGNORE, /// @@ -51,7 +51,7 @@ typedef std::pair FamilyPair; typedef std::pair SeriesPair; typedef std::pair ShapePair; typedef std::pair SizePair; -typedef std::pair BarPair; +typedef std::pair BarPair; typedef std::pair LanguagePair; class GuiCharacter : public GuiDialog, public Ui::CharacterUi @@ -86,9 +86,9 @@ private: /// void paramsToDialog(Font const & font); /// - void setBar(FontInfo & fi, FontState val); + void setBar(FontInfo & fi, FontDeco val); /// - void setStrike(FontInfo & fi, FontState val); + void setStrike(FontInfo & fi, FontDeco val); QList family; QList series;