Skip to content

Commit

Permalink
shortcut_catcher: A few 80 char limit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Jun 13, 2014
1 parent d2da54d commit 78daf28
Showing 1 changed file with 10 additions and 5 deletions.
Expand Up @@ -179,7 +179,8 @@ KeyCommandMap::DrainInjectedEvents(const BMessage* keyMessage, BList* outList,

BArchivable* archive = instantiate_object(message);
if (archive != NULL) {
CommandActuator* actuator = dynamic_cast<CommandActuator*>(archive);
CommandActuator* actuator
= dynamic_cast<CommandActuator*>(archive);
if (actuator != NULL) {
BMessage newMessage(*keyMessage);
newMessage.what = B_KEY_DOWN;
Expand Down Expand Up @@ -251,7 +252,8 @@ KeyCommandMap::MessageReceived(BMessage* message)
BFile file(fFileName, B_READ_ONLY);
BList* newList = new BList;
BList* oldList = NULL;
if (file.InitCheck() == B_OK && fileMessage.Unflatten(&file) == B_OK) {
if (file.InitCheck() == B_OK && fileMessage.Unflatten(&file)
== B_OK) {
file.GetNodeRef(&fNodeRef);
int32 i = 0;
BMessage message;
Expand All @@ -269,8 +271,9 @@ KeyCommandMap::MessageReceived(BMessage* message)
BString command;
if (msg.FindString("command", &command) == B_OK) {
BStringList paths;
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY,
"Tracker/", paths);
BPathFinder::FindPaths(
B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker/",
paths);
bool foundAddOn = false;
for (uint32 i = 0; i < paths.CountStrings(); i++) {
if (command.FindFirst(paths.StringAt(i))
Expand All @@ -281,7 +284,9 @@ KeyCommandMap::MessageReceived(BMessage* message)
}
if (foundAddOn) continue;
}
BArchivable* archive = instantiate_object(&testerMessage);

BArchivable* archive
= instantiate_object(&testerMessage);
if (BitFieldTester* tester
= dynamic_cast<BitFieldTester*>(archive)) {
archive = instantiate_object(&actuatorMessage);
Expand Down

0 comments on commit 78daf28

Please sign in to comment.