mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
default is not a contextual keyword
This commit is contained in:
parent
fa19d8fccc
commit
8ba7f5b45d
|
@ -34,7 +34,7 @@ namespace xlnt {
|
|||
/// </summary>
|
||||
enum class XLNT_API orientation
|
||||
{
|
||||
default,
|
||||
default_orientation,
|
||||
portrait,
|
||||
landscape
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user