diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-26 11:09:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-27 08:33:43 +0200 |
commit | 402ae4c06c0935b0b2bfe9aeb6f961a65702e307 (patch) | |
tree | cd75533421c6b32393871fe5ff4eea3ba285ae28 | |
parent | 28c61871e876e6a2cac47439f768504b1a4c94a0 (diff) |
convert ProminentEntry to enum class
Change-Id: I51578e83a6a44beece174792c9e3e59f7f8c5fef
-rw-r--r-- | include/tools/wintypes.hxx | 2 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx index c26833e020eb..995dcfe8235f 100644 --- a/include/tools/wintypes.hxx +++ b/include/tools/wintypes.hxx @@ -312,7 +312,7 @@ typedef sal_uInt16 StandardButtonType; // prominent place for ListBox window types -enum ProminentEntry { PROMINENT_TOP, PROMINENT_MIDDLE }; +enum class ProminentEntry { TOP, MIDDLE }; #endif diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index e3576cb9c0ec..60874a7a7739 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1530,7 +1530,7 @@ void FontSizeBox::ImplInit() SetDecimalDigits( 1 ); SetMin( 20 ); SetMax( 9999 ); - SetProminentEntryType( PROMINENT_MIDDLE ); + SetProminentEntryType( ProminentEntry::MIDDLE ); } void FontSizeBox::Reformat() diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 0121b618628c..2ec92334e880 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -524,7 +524,7 @@ ImplListBoxWindow::ImplListBoxWindow( vcl::Window* pParent, WinBits nWinStyle ) mnCurrentPos = LISTBOX_ENTRY_NOTFOUND; mnTrackingSaveSelection = LISTBOX_ENTRY_NOTFOUND; mnSeparatorPos = LISTBOX_ENTRY_NOTFOUND; - meProminentType = PROMINENT_TOP; + meProminentType = ProminentEntry::TOP; SetLineColor(); SetTextFillColor(); @@ -1992,7 +1992,7 @@ void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop ) void ImplListBoxWindow::ShowProminentEntry( sal_Int32 nEntryPos ) { - if( meProminentType == PROMINENT_MIDDLE ) + if( meProminentType == ProminentEntry::MIDDLE ) { sal_Int32 nPos = nEntryPos; long nWHeight = PixelToLogic( GetSizePixel() ).Height(); |