From b860b73f2ba3322663106eeb1de7e07af6959248 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 31 May 2016 14:25:11 +0200 Subject: Convert VCL_MESSAGE to scoped enum Change-Id: I976536849fa5585c96cee23b660c56d3d0116933 Reviewed-on: https://gerrit.libreoffice.org/25720 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/layout.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') 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); -- cgit