Automatic whitespace cleanup. No functional change

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37452 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia
2010-07-10 08:36:16 +00:00
parent 1e8e2989d6
commit db22cdca2f
+9 -9
View File
@@ -2,12 +2,12 @@
PrintTransport PrintTransport
Copyright (c) 2004 OpenBeOS. Copyright (c) 2004 OpenBeOS.
Authors: Authors:
Philippe Houdoin Philippe Houdoin
Michael Pfeiffer Michael Pfeiffer
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to the Software without restriction, including without limitation the rights to
@@ -50,7 +50,7 @@ PrintTransport::~PrintTransport()
(*fExitProc)(); (*fExitProc)();
fExitProc = NULL; fExitProc = NULL;
} }
if (fAddOnID >= 0) { if (fAddOnID >= 0) {
unload_add_on(fAddOnID); unload_add_on(fAddOnID);
fAddOnID = -1; fAddOnID = -1;
@@ -63,20 +63,20 @@ status_t PrintTransport::Open(BNode* printerFolder)
if (fDataIO != NULL) { if (fDataIO != NULL) {
return B_ERROR; return B_ERROR;
} }
// retrieve transport add-on name from printer folder attribute // retrieve transport add-on name from printer folder attribute
BString transportName; BString transportName;
if (printerFolder->ReadAttrString("transport", &transportName) != B_OK) { if (printerFolder->ReadAttrString("transport", &transportName) != B_OK) {
return B_ERROR; return B_ERROR;
} }
// try first in user add-ons directory // try first in user add-ons directory
BPath path; BPath path;
find_directory(B_USER_ADDONS_DIRECTORY, &path); find_directory(B_USER_ADDONS_DIRECTORY, &path);
path.Append("Print/transport"); path.Append("Print/transport");
path.Append(transportName.String()); path.Append(transportName.String());
fAddOnID = load_add_on(path.Path()); fAddOnID = load_add_on(path.Path());
if (fAddOnID < 0) { if (fAddOnID < 0) {
// on failure try in system add-ons directory // on failure try in system add-ons directory
find_directory(B_BEOS_ADDONS_DIRECTORY, &path); find_directory(B_BEOS_ADDONS_DIRECTORY, &path);
@@ -103,14 +103,14 @@ status_t PrintTransport::Open(BNode* printerFolder)
// now, initialize the transport add-on // now, initialize the transport add-on
node_ref ref; node_ref ref;
BDirectory dir; BDirectory dir;
printerFolder->GetNodeRef(&ref); printerFolder->GetNodeRef(&ref);
dir.SetTo(&ref); dir.SetTo(&ref);
if (path.SetTo(&dir, NULL) != B_OK) { if (path.SetTo(&dir, NULL) != B_OK) {
return B_ERROR; return B_ERROR;
} }
// request BDataIO object from transport add-on // request BDataIO object from transport add-on
BMessage input('TRIN'); BMessage input('TRIN');
input.AddString("printer_file", path.Path()); input.AddString("printer_file", path.Path());