diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-21 15:51:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-22 06:43:06 +0000 |
commit | 21907d647c58594e58fde0d6507f63f6207fe4bd (patch) | |
tree | 498386823efa6f98c5ee94948c31db231570d925 /vcl/source/window/layout.cxx | |
parent | 29fa61837f11c6149157f1c2dd850415a38a3e47 (diff) |
convert VclSizeGroupMode to scoped enum
Change-Id: Id731fb3d5f9eb5ddaa3af41b010bff340f1077ce
Reviewed-on: https://gerrit.libreoffice.org/32290
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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()); |