diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-21 15:48:51 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2016-12-21 16:19:37 +0000 |
commit | 6b8ee3c9ba9b9262b34743a9f4e2a5b9dda4173f (patch) | |
tree | ba5bf03e1b94e30a76ac66d5dcd3c7749e3c568f /include | |
parent | tweak fuzzing dependencies (diff) | |
download | core-6b8ee3c9ba9b9262b34743a9f4e2a5b9dda4173f.tar.gz core-6b8ee3c9ba9b9262b34743a9f4e2a5b9dda4173f.zip |
convert VclButtonsType to scoped enum
Change-Id: I9b91108c18e190060dc71546977aa8a3c11f06e1
Reviewed-on: https://gerrit.libreoffice.org/32285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/layout.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 59a0817d70c6..e1371783dff4 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -620,14 +620,14 @@ public: bool set_property(const OString &rKey, const OString &rValue); }; -enum VclButtonsType +enum class VclButtonsType { - VCL_BUTTONS_NONE, - VCL_BUTTONS_OK, - VCL_BUTTONS_CLOSE, - VCL_BUTTONS_CANCEL, - VCL_BUTTONS_YES_NO, - VCL_BUTTONS_OK_CANCEL + NONE, + Ok, + Close, + Cancel, + YesNo, + OkCancel }; enum class VclMessageType @@ -665,7 +665,7 @@ public: MessageDialog(vcl::Window* pParent, const OUString &rMessage, VclMessageType eMessageType = VclMessageType::Error, - VclButtonsType eButtonsType = VCL_BUTTONS_OK); + VclButtonsType eButtonsType = VclButtonsType::Ok); MessageDialog(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription); virtual bool set_property(const OString &rKey, const OString &rValue) override; virtual short Execute() override; |