diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-14 15:36:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-15 08:33:37 +0200 |
commit | dfd5510a7a94885d6e678dd401528fdf656fbf73 (patch) | |
tree | 553dcddf75fd1979c3ebc99c08d2f2788969d840 /starmath/source/view.cxx | |
parent | fac166ab23643f2760dba817984b86c2c8dd8ea6 (diff) |
convert SmBracketType to scoped enum
and drop unused enumerators
Change-Id: Icda3ff510331f9f0adb97d6dac56edf325d0d1a7
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r-- | starmath/source/view.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 0e93bdd52974..57aed30c893c 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -499,20 +499,20 @@ void SmGraphicWindow::KeyInput(const KeyEvent& rKEvt) }else if(code == '^') { rCursor.InsertSubSup(RSUP); }else if(code == '(') { - rCursor.InsertBrackets(RoundBrackets); + rCursor.InsertBrackets(SmBracketType::Round); }else if(code == '[') { - rCursor.InsertBrackets(SquareBrackets); + rCursor.InsertBrackets(SmBracketType::Square); }else if(code == '{') { - rCursor.InsertBrackets(CurlyBrackets); + rCursor.InsertBrackets(SmBracketType::Curly); }else if(code == '!') { rCursor.InsertElement(FactorialElement); }else if(code == '%') { rCursor.InsertElement(PercentElement); - }else if(code == ')' && rCursor.IsAtTailOfBracket(RoundBrackets, &pBraceNode)) { + }else if(code == ')' && rCursor.IsAtTailOfBracket(SmBracketType::Round, &pBraceNode)) { rCursor.MoveAfterBracket(pBraceNode); - }else if(code == ']' && rCursor.IsAtTailOfBracket(SquareBrackets, &pBraceNode)) { + }else if(code == ']' && rCursor.IsAtTailOfBracket(SmBracketType::Square, &pBraceNode)) { rCursor.MoveAfterBracket(pBraceNode); - }else if(code == '}' && rCursor.IsAtTailOfBracket(CurlyBrackets, &pBraceNode)) { + }else if(code == '}' && rCursor.IsAtTailOfBracket(SmBracketType::Curly, &pBraceNode)) { rCursor.MoveAfterBracket(pBraceNode); }else{ if(code != 0){ |