From 504033fbbeff50d39b7669ddbb1a17bdb65dd2f8 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Sat, 11 Jul 2009 14:37:11 +0000 Subject: [PATCH] Clean up. Renamed spool_file to spoolFile. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31521 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/libs/print/libprint/GraphicsDriver.h | 2 +- src/libs/print/libprint/GraphicsDriver.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/headers/libs/print/libprint/GraphicsDriver.h b/headers/libs/print/libprint/GraphicsDriver.h index 100fca36f0..1144129cde 100644 --- a/headers/libs/print/libprint/GraphicsDriver.h +++ b/headers/libs/print/libprint/GraphicsDriver.h @@ -28,7 +28,7 @@ public: GraphicsDriver(BMessage *, PrinterData *, const PrinterCap *); virtual ~GraphicsDriver(); const JobData *getJobData(BFile *spoolFile); - BMessage *takeJob(BFile *spool, uint32 flags = 0); + BMessage *takeJob(BFile *spoolFile, uint32 flags = 0); static BPoint getScale(int32 nup, BRect physicalRect, float scaling); static BPoint getOffset(int32 nup, int index, JobData::Orientation orientation, const BPoint *scale, BRect scaledPhysicalRect, BRect scaledPrintableRect, BRect physicalRect); diff --git a/src/libs/print/libprint/GraphicsDriver.cpp b/src/libs/print/libprint/GraphicsDriver.cpp index 0c7534c313..18ce95e41f 100644 --- a/src/libs/print/libprint/GraphicsDriver.cpp +++ b/src/libs/print/libprint/GraphicsDriver.cpp @@ -67,7 +67,7 @@ static BRect RotateRect(BRect rect) } bool -GraphicsDriver::setupData(BFile *spool_file) +GraphicsDriver::setupData(BFile *spoolFile) { if (fOrgJobData != NULL) { // already initialized @@ -79,8 +79,8 @@ GraphicsDriver::setupData(BFile *spool_file) #else BPrintJob::print_file_header pfh; #endif - spool_file->Seek(0, SEEK_SET); - spool_file->Read(&pfh, sizeof(pfh)); + spoolFile->Seek(0, SEEK_SET); + spoolFile->Read(&pfh, sizeof(pfh)); DBGMSG(("print_file_header::version = 0x%x\n", pfh.version)); DBGMSG(("print_file_header::page_count = %d\n", pfh.page_count)); @@ -93,7 +93,7 @@ GraphicsDriver::setupData(BFile *spool_file) fPageCount = (uint32) pfh.page_count; BMessage *msg = new BMessage(); - msg->Unflatten(spool_file); + msg->Unflatten(spoolFile); fOrgJobData = new JobData(msg, fPrinterCap, JobData::kJobSettings); DUMP_BMESSAGE(msg); delete msg; @@ -123,7 +123,7 @@ GraphicsDriver::setupData(BFile *spool_file) fInternalCopies = 1; } - fSpoolMetaData = new SpoolMetaData(spool_file); + fSpoolMetaData = new SpoolMetaData(spoolFile); return true; } @@ -548,10 +548,10 @@ GraphicsDriver::getJobData(BFile *spoolFile) } bool -GraphicsDriver::printJob(BFile *spool_file) +GraphicsDriver::printJob(BFile *spoolFile) { bool success = true; - if (!setupData(spool_file)) { + if (!setupData(spoolFile)) { // silently exit if there is nothing to print return true; } @@ -563,7 +563,7 @@ GraphicsDriver::printJob(BFile *spool_file) } else if (!fTransport->is_print_to_file_canceled()) { BStopWatch stopWatch("printJob", !MEASURE_PRINT_JOB_TIME); setupBitmap(); - SpoolData spool_data(spool_file, fPageCount, fOrgJobData->getNup(), fOrgJobData->getReverse()); + SpoolData spool_data(spoolFile, fPageCount, fOrgJobData->getNup(), fOrgJobData->getReverse()); success = startDoc(); if (success) { fStatusWindow = new StatusWindow( @@ -604,11 +604,11 @@ GraphicsDriver::printJob(BFile *spool_file) } BMessage * -GraphicsDriver::takeJob(BFile* spool_file, uint32 flags) +GraphicsDriver::takeJob(BFile* spoolFile, uint32 flags) { fFlags = flags; BMessage *msg; - if (printJob(spool_file)) { + if (printJob(spoolFile)) { msg = new BMessage('okok'); } else { msg = new BMessage('baad');