shortcut_catcher: A few 80 char limit fixes
This commit is contained in:
@@ -179,7 +179,8 @@ KeyCommandMap::DrainInjectedEvents(const BMessage* keyMessage, BList* outList,
|
|||||||
|
|
||||||
BArchivable* archive = instantiate_object(message);
|
BArchivable* archive = instantiate_object(message);
|
||||||
if (archive != NULL) {
|
if (archive != NULL) {
|
||||||
CommandActuator* actuator = dynamic_cast<CommandActuator*>(archive);
|
CommandActuator* actuator
|
||||||
|
= dynamic_cast<CommandActuator*>(archive);
|
||||||
if (actuator != NULL) {
|
if (actuator != NULL) {
|
||||||
BMessage newMessage(*keyMessage);
|
BMessage newMessage(*keyMessage);
|
||||||
newMessage.what = B_KEY_DOWN;
|
newMessage.what = B_KEY_DOWN;
|
||||||
@@ -251,7 +252,8 @@ KeyCommandMap::MessageReceived(BMessage* message)
|
|||||||
BFile file(fFileName, B_READ_ONLY);
|
BFile file(fFileName, B_READ_ONLY);
|
||||||
BList* newList = new BList;
|
BList* newList = new BList;
|
||||||
BList* oldList = NULL;
|
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);
|
file.GetNodeRef(&fNodeRef);
|
||||||
int32 i = 0;
|
int32 i = 0;
|
||||||
BMessage message;
|
BMessage message;
|
||||||
@@ -269,8 +271,9 @@ KeyCommandMap::MessageReceived(BMessage* message)
|
|||||||
BString command;
|
BString command;
|
||||||
if (msg.FindString("command", &command) == B_OK) {
|
if (msg.FindString("command", &command) == B_OK) {
|
||||||
BStringList paths;
|
BStringList paths;
|
||||||
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY,
|
BPathFinder::FindPaths(
|
||||||
"Tracker/", paths);
|
B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker/",
|
||||||
|
paths);
|
||||||
bool foundAddOn = false;
|
bool foundAddOn = false;
|
||||||
for (uint32 i = 0; i < paths.CountStrings(); i++) {
|
for (uint32 i = 0; i < paths.CountStrings(); i++) {
|
||||||
if (command.FindFirst(paths.StringAt(i))
|
if (command.FindFirst(paths.StringAt(i))
|
||||||
@@ -281,7 +284,9 @@ KeyCommandMap::MessageReceived(BMessage* message)
|
|||||||
}
|
}
|
||||||
if (foundAddOn) continue;
|
if (foundAddOn) continue;
|
||||||
}
|
}
|
||||||
BArchivable* archive = instantiate_object(&testerMessage);
|
|
||||||
|
BArchivable* archive
|
||||||
|
= instantiate_object(&testerMessage);
|
||||||
if (BitFieldTester* tester
|
if (BitFieldTester* tester
|
||||||
= dynamic_cast<BitFieldTester*>(archive)) {
|
= dynamic_cast<BitFieldTester*>(archive)) {
|
||||||
archive = instantiate_object(&actuatorMessage);
|
archive = instantiate_object(&actuatorMessage);
|
||||||
|
|||||||
Reference in New Issue
Block a user