From 21907d647c58594e58fde0d6507f63f6207fe4bd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Dec 2016 15:51:29 +0200 Subject: convert VclSizeGroupMode to scoped enum Change-Id: Id731fb3d5f9eb5ddaa3af41b010bff340f1077ce Reviewed-on: https://gerrit.libreoffice.org/32290 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/window/layout.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/source/window/layout.cxx') diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 9a5165830a3a..0b8795a27d11 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2135,15 +2135,15 @@ bool VclSizeGroup::set_property(const OString &rKey, const OString &rValue) set_ignore_hidden(toBool(rValue)); else if (rKey == "mode") { - VclSizeGroupMode eMode = VCL_SIZE_GROUP_HORIZONTAL; + VclSizeGroupMode eMode = VclSizeGroupMode::Horizontal; if (rValue.equals("none")) - eMode = VCL_SIZE_GROUP_NONE; + eMode = VclSizeGroupMode::NONE; else if (rValue.equals("horizontal")) - eMode = VCL_SIZE_GROUP_HORIZONTAL; + eMode = VclSizeGroupMode::Horizontal; else if (rValue.equals("vertical")) - eMode = VCL_SIZE_GROUP_VERTICAL; + eMode = VclSizeGroupMode::Vertical; else if (rValue.equals("both")) - eMode = VCL_SIZE_GROUP_BOTH; + eMode = VclSizeGroupMode::Both; else { SAL_WARN("vcl.layout", "unknown size group mode" << rValue.getStr()); -- cgit