diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-31 14:25:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-01 06:46:29 +0000 |
commit | b860b73f2ba3322663106eeb1de7e07af6959248 (patch) | |
tree | 939d5596c023d4bfa467ecc3349548cd040d7e7d /include | |
parent | bf3f3a6bfb08c2d1a2c95f1c1cf62117e0002235 (diff) |
Convert VCL_MESSAGE to scoped enum
Change-Id: I976536849fa5585c96cee23b660c56d3d0116933
Reviewed-on: https://gerrit.libreoffice.org/25720
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/layout.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index a968040b9c29..a3e21042989c 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -621,12 +621,12 @@ enum VclButtonsType VCL_BUTTONS_OK_CANCEL }; -enum VclMessageType +enum class VclMessageType { - VCL_MESSAGE_INFO, - VCL_MESSAGE_WARNING, - VCL_MESSAGE_QUESTION, - VCL_MESSAGE_ERROR + Info, + Warning, + Question, + Error }; class VCL_DLLPUBLIC MessageDialog : public Dialog @@ -655,7 +655,7 @@ public: MessageDialog(vcl::Window* pParent, const OUString &rMessage, - VclMessageType eMessageType = VCL_MESSAGE_ERROR, + VclMessageType eMessageType = VclMessageType::Error, VclButtonsType eButtonsType = VCL_BUTTONS_OK, WinBits nStyle = WB_MOVEABLE | WB_3DLOOK | WB_CLOSEABLE); MessageDialog(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription); |