From 6b8c9f570822ddc2603f14394c648ae0da2ceaaa Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 20 Feb 2006 22:17:02 +0000 Subject: [PATCH] Return B_ERROR in unimplemented methods git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16486 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/PrintJob.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/PrintJob.cpp b/src/kits/interface/PrintJob.cpp index a4263af78a..0fd80158ae 100644 --- a/src/kits/interface/PrintJob.cpp +++ b/src/kits/interface/PrintJob.cpp @@ -43,8 +43,8 @@ EnsureValidMessenger() if (sPrintServer == NULL) sPrintServer = new BMessenger; - if (sPrintServer == NULL) - return B_NO_MEMORY; + if (sPrintServer == NULL) + return B_NO_MEMORY; if (!sPrintServer->IsValid()) *sPrintServer = BMessenger(PSRV_SIGNATURE_TYPE); @@ -139,7 +139,7 @@ BPrintJob::CommitJob() // TODO: Show an alert delete message; delete reply; - return; + return; } delete message; @@ -170,7 +170,8 @@ status_t BPrintJob::ConfigJob() { // TODO: Implement - return B_OK; + + return ConfigPage(); } @@ -185,8 +186,9 @@ BPrintJob::CancelJob() status_t BPrintJob::ConfigPage() -{ - return B_OK; +{ + // TODO: Launch config window and get settings from it + return B_ERROR; }