From c8bda73f017113430ad96aa9ce0e82a8f0949ffd Mon Sep 17 00:00:00 2001 From: Youngsuk Chung Date: Mon, 9 Dec 2019 14:46:12 +0900 Subject: [PATCH 1/2] Fix g++-5 build bug (Fix #385) Tested on g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 Note: Actually,it is not a BUG. It is compiler related issue. The issue #385 is not shown in g++-6 and clang. --- source/detail/serialization/custom_value_traits.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/detail/serialization/custom_value_traits.cpp b/source/detail/serialization/custom_value_traits.cpp index 2eaf8490..0389e875 100644 --- a/source/detail/serialization/custom_value_traits.cpp +++ b/source/detail/serialization/custom_value_traits.cpp @@ -347,11 +347,11 @@ std::string to_string(orientation orientation) { switch (orientation) { - case orientation::default_orientation: + case xlnt::orientation::default_orientation: return "default"; - case orientation::landscape: + case xlnt::orientation::landscape: return "landscape"; - case orientation::portrait: + case xlnt::orientation::portrait: return "portrait"; } default_case("default"); From 8e2f197f70b57d827b7560af581f9d4c64f563a1 Mon Sep 17 00:00:00 2001 From: Youngsuk Chung Date: Mon, 9 Dec 2019 14:52:07 +0900 Subject: [PATCH 2/2] Fix indentation --- source/detail/serialization/custom_value_traits.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/detail/serialization/custom_value_traits.cpp b/source/detail/serialization/custom_value_traits.cpp index 0389e875..dc788cb0 100644 --- a/source/detail/serialization/custom_value_traits.cpp +++ b/source/detail/serialization/custom_value_traits.cpp @@ -347,11 +347,11 @@ std::string to_string(orientation orientation) { switch (orientation) { - case xlnt::orientation::default_orientation: + case xlnt::orientation::default_orientation: return "default"; - case xlnt::orientation::landscape: + case xlnt::orientation::landscape: return "landscape"; - case xlnt::orientation::portrait: + case xlnt::orientation::portrait: return "portrait"; } default_case("default");