default is not a contextual keyword

This commit is contained in:
Crzyrndm 2018-06-25 21:41:25 +12:00
parent fa19d8fccc
commit 8ba7f5b45d
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ namespace xlnt {
/// </summary>
enum class XLNT_API orientation
{
default,
default_orientation,
portrait,
landscape
};

View File

@ -347,7 +347,7 @@ std::string to_string(orientation orientation)
{
switch (orientation)
{
case orientation::default:
case orientation::default_orientation:
return "default";
case orientation::landscape:
return "landscape";

View File

@ -400,7 +400,7 @@ pane_corner from_string(const std::string &string)
template <>
orientation from_string(const std::string &string)
{
if (string == "default") return orientation::default;
if (string == "default") return orientation::default_orientation;
else if (string == "landscape") return orientation::landscape;
else if (string == "portrait") return orientation::portrait;
default_case(orientation::default);