diff options
author | Orochimarufan <orochimarufan.x3@gmail.com> | 2013-02-25 22:47:03 +0100 |
---|---|---|
committer | Orochimarufan <orochimarufan.x3@gmail.com> | 2013-03-22 13:56:57 +0100 |
commit | f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb (patch) | |
tree | 595a93410af4ff4e238d27d78b030c595915d4cc /libutil/include | |
parent | f01bf10dc511268ead551a191a6a3211c006ba44 (diff) | |
download | MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.gz MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.lz MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.tar.xz MultiMC-f4c9cb8c1d395422b7e4f1c27ac92b6df08a39bb.zip |
refactor indendation, fix a bug in MinecraftProcess & fix a bug in
InstanceLauncher
Diffstat (limited to 'libutil/include')
-rw-r--r-- | libutil/include/cmdutils.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libutil/include/cmdutils.h b/libutil/include/cmdutils.h index 32261dd7..83397e73 100644 --- a/libutil/include/cmdutils.h +++ b/libutil/include/cmdutils.h @@ -73,15 +73,6 @@ enum LIBUTIL_EXPORT Enum }; } -namespace OptionType -{ -enum LIBUTIL_EXPORT Enum -{ - Switch, - Option -}; -} - /** * @brief The ParsingError class */ @@ -210,6 +201,12 @@ public: private: FlagStyle::Enum m_flagStyle; ArgumentStyle::Enum m_argStyle; + + enum OptionType + { + otSwitch, + otOption + }; // Important: the common part MUST BE COMMON ON ALL THREE structs struct CommonDef { @@ -226,7 +223,7 @@ private: QString metavar; QVariant def; // option - OptionType::Enum type; + OptionType type; QChar flag; }; |