summaryrefslogtreecommitdiff
path: root/indra/newview/lllogininstance.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2017-08-14 11:52:41 -0400
committerOz Linden <oz@lindenlab.com>2017-08-14 11:52:41 -0400
commit4d71ffb430879c3d24d910465ca7afa3fae0b141 (patch)
treecdc157ff7b8b2229b1de79212e7c2a88d8e7d8f2 /indra/newview/lllogininstance.cpp
parent612ff7b6b3f3abb56ff6bf8331e2a1cd04c04066 (diff)
MAINT-7640: code review fixes
Diffstat (limited to 'indra/newview/lllogininstance.cpp')
-rw-r--r--indra/newview/lllogininstance.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/indra/newview/lllogininstance.cpp b/indra/newview/lllogininstance.cpp
index b953534e13..30fa23835b 100644
--- a/indra/newview/lllogininstance.cpp
+++ b/indra/newview/lllogininstance.cpp
@@ -299,35 +299,35 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)
boost::bind(&LLLoginInstance::handleTOSResponse,
this, _1, "read_critical"));
}
- else if(reason_response == "update")
- {
+ else if(reason_response == "update")
+ {
// This shouldn't happen - the viewer manager should have forced an update;
// possibly the user ran the viewer directly and bypassed the update check
std::string required_version = response["message_args"]["VERSION"];
- LL_WARNS() << "Login failed because an update to version " << required_version << " is required." << LL_ENDL;
+ LL_WARNS() << "Login failed because an update to version " << required_version << " is required." << LL_ENDL;
- if (gViewerWindow)
- gViewerWindow->setShowProgress(FALSE);
+ if (gViewerWindow)
+ gViewerWindow->setShowProgress(FALSE);
- LLSD data(LLSD::emptyMap());
+ LLSD data(LLSD::emptyMap());
data["VERSION"] = required_version;
LLNotificationsUtil::add("RequiredUpdate", data, LLSD::emptyMap(), boost::bind(&LLLoginInstance::handleLoginDisallowed, this, _1, _2));
- }
- else if(reason_response == "key")
- {
+ }
+ else if(reason_response == "key")
+ {
// this is a password problem or other restriction
// an appropriate message has already been displayed
attemptComplete();
}
- else
- {
- LL_WARNS() << "Login failed for an unknown reason: " << LLSDOStreamer<LLSDNotationFormatter>(response) << LL_ENDL;
+ else
+ {
+ LL_WARNS() << "Login failed for an unknown reason: " << LLSDOStreamer<LLSDNotationFormatter>(response) << LL_ENDL;
- if (gViewerWindow)
- gViewerWindow->setShowProgress(FALSE);
+ if (gViewerWindow)
+ gViewerWindow->setShowProgress(FALSE);
LLNotificationsUtil::add("LoginFailedUnknown", LLSD::emptyMap(), LLSD::emptyMap(), boost::bind(&LLLoginInstance::handleLoginDisallowed, this, _1, _2));
- }
+ }
}
void LLLoginInstance::handleLoginDisallowed(const LLSD& notification, const LLSD& response)