From 4339f8be19742044831bd004c420eb09cd45537d Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Fri, 14 May 2010 09:36:26 +0000 Subject: [PATCH] Style clean up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36810 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../transports/hp_jetdirect/HPJetDirectTransport.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/add-ons/print/transports/hp_jetdirect/HPJetDirectTransport.cpp b/src/add-ons/print/transports/hp_jetdirect/HPJetDirectTransport.cpp index 4014be20e4..bb429a2c32 100644 --- a/src/add-ons/print/transports/hp_jetdirect/HPJetDirectTransport.cpp +++ b/src/add-ons/print/transports/hp_jetdirect/HPJetDirectTransport.cpp @@ -45,7 +45,10 @@ // Implementation of HPJetDirectPort HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg) - : fPort(9100), fEndpoint(NULL), fReady(B_ERROR) + : + fPort(9100), + fEndpoint(NULL), + fReady(B_ERROR) { fHost[0] = '\0'; @@ -62,14 +65,14 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg) dir.ReadAttr("hp_jetdirect:host", B_STRING_TYPE, 0, fHost, sizeof(fHost)); dir.ReadAttr("hp_jetdirect:port", B_UINT16_TYPE, 0, &fPort, sizeof(fPort)); - }; + } fEndpoint = new BNetEndpoint(SOCK_STREAM); if ((fReady = fEndpoint->InitCheck()) != B_OK) { BAlert *alert = new BAlert("", "Fail to create the NetEndpoint!", "OK"); alert->Go(); return; - }; + } if (fEndpoint->Connect(fHost, fPort) == B_OK) { printf("Connected to HP JetDirect printer port at %s:%d\n", fHost, fPort); @@ -78,7 +81,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg) BAlert *alert = new BAlert("", "Can't connect to HP JetDirect printer port!", "OK"); alert->Go(); fReady = B_ERROR; - }; + } }