Rename a variable

This commit is contained in:
Jerry (Xinyu Hou) 2015-10-22 16:04:05 -07:00
parent 1f54dd2d3b
commit 85ef7935cc
4 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ ArgParser::parseToolArgs(ToolArgs& args, int argc, const char* const* argv)
return true; return true;
} }
else if (isArg(i, argc, argv, NULL, "--get-subscription-filename", 0)) { else if (isArg(i, argc, argv, NULL, "--get-subscription-filename", 0)) {
args.m_printSubscriptionFilename = true; args.m_getSubscriptionFilename = true;
return true; return true;
} }
else if (isArg(i, argc, argv, NULL, "--check-subscription", 0)) { else if (isArg(i, argc, argv, NULL, "--check-subscription", 0)) {

View File

@ -97,7 +97,7 @@ ToolApp::run(int argc, char** argv)
return kExitSubscription; return kExitSubscription;
} }
} }
else if (m_args.m_printSubscriptionFilename) { else if (m_args.m_getSubscriptionFilename) {
try { try {
SubscriptionManager subscriptionManager; SubscriptionManager subscriptionManager;
subscriptionManager.printFilename(); subscriptionManager.printFilename();

View File

@ -25,7 +25,7 @@ ToolArgs::ToolArgs() :
m_getInstalledDir(false), m_getInstalledDir(false),
m_getProfileDir(false), m_getProfileDir(false),
m_getArch(false), m_getArch(false),
m_printSubscriptionFilename(false), m_getSubscriptionFilename(false),
m_checkSubscription(false), m_checkSubscription(false),
m_subscriptionSerial() m_subscriptionSerial()
{ {

View File

@ -31,7 +31,7 @@ public:
bool m_getInstalledDir; bool m_getInstalledDir;
bool m_getProfileDir; bool m_getProfileDir;
bool m_getArch; bool m_getArch;
bool m_printSubscriptionFilename; bool m_getSubscriptionFilename;
bool m_checkSubscription; bool m_checkSubscription;
String m_subscriptionSerial; String m_subscriptionSerial;
}; };