diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-22 12:56:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-22 17:54:21 +0000 |
commit | bc9459f095c55609f4d90533c0f11f17922ebb34 (patch) | |
tree | 0b07fbdd09445d47352d7563b06917e3d8fc6603 /include/drawinglayer | |
parent | 7e55fbab6348c2a844fc7ecca8de61416db8fdae (diff) |
Convert BreakupUnit to scoped enum
Change-Id: Icda4584c79a8af2c2e5fc5a29c498f7869641aa5
Reviewed-on: https://gerrit.libreoffice.org/25299
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r-- | include/drawinglayer/primitive2d/textbreakuphelper.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/drawinglayer/primitive2d/textbreakuphelper.hxx b/include/drawinglayer/primitive2d/textbreakuphelper.hxx index 702d5bf29abe..73a57f7f2640 100644 --- a/include/drawinglayer/primitive2d/textbreakuphelper.hxx +++ b/include/drawinglayer/primitive2d/textbreakuphelper.hxx @@ -30,11 +30,11 @@ namespace drawinglayer { namespace primitive2d { - enum BreakupUnit + enum class BreakupUnit { - BreakupUnit_character, - BreakupUnit_word, - BreakupUnit_sentence + Character, + Word, + Sentence }; class DRAWINGLAYER_DLLPUBLIC TextBreakupHelper @@ -69,7 +69,7 @@ namespace drawinglayer virtual ~TextBreakupHelper(); /// get result - const Primitive2DContainer& getResult(BreakupUnit aBreakupUnit = BreakupUnit_character) const; + const Primitive2DContainer& getResult(BreakupUnit aBreakupUnit = BreakupUnit::Character) const; }; } // end of namespace primitive2d |