libnetapi: style cleanup
This commit is contained in:
@@ -53,4 +53,3 @@ BFileRequest::_ProtocolLoop()
|
||||
|
||||
return B_PROT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -745,8 +745,7 @@ BNetworkCookie::_ExtractAttributeValuePair(const BString& cookieString,
|
||||
value.SetTo("");
|
||||
|
||||
// values may (or may not) have quotes around them.
|
||||
if(value[0] == '"' && value[value.Length() - 1] == '"')
|
||||
{
|
||||
if (value[0] == '"' && value[value.Length() - 1] == '"') {
|
||||
value.Remove(0, 1);
|
||||
value.Remove(value.Length() - 1, 1);
|
||||
}
|
||||
|
||||
@@ -372,8 +372,7 @@ BNetworkCookieJar::operator=(const BNetworkCookieJar& other)
|
||||
delete fCookieHashMap;
|
||||
fCookieHashMap = new PrivateHashMap();
|
||||
|
||||
for (Iterator it = other.GetIterator(); it.HasNext();)
|
||||
{
|
||||
for (Iterator it = other.GetIterator(); it.HasNext();) {
|
||||
BNetworkCookie* cookie = it.Next();
|
||||
AddCookie(*cookie); // Pass by reference so the cookie is copied.
|
||||
}
|
||||
|
||||
@@ -723,8 +723,7 @@ BUrl::SetAuthority(const BString& authority)
|
||||
int16 hostEnd = fAuthority.FindFirst(':', userInfoEnd);
|
||||
userInfoEnd++;
|
||||
|
||||
if(hostEnd < 0)
|
||||
{
|
||||
if (hostEnd < 0) {
|
||||
// no ':' found, the host extends to the end of the URL
|
||||
hostEnd = fAuthority.Length() + 1;
|
||||
}
|
||||
|
||||
@@ -101,8 +101,7 @@ BUrlProtocolAsynchronousListener::MessageReceived(BMessage* message)
|
||||
const char* data;
|
||||
ssize_t size = 0;
|
||||
if (message->FindData("url:data", B_STRING_TYPE,
|
||||
reinterpret_cast<const void**>(&data), &size) != B_OK)
|
||||
{
|
||||
reinterpret_cast<const void**>(&data), &size) != B_OK) {
|
||||
printf("BOGUS DATA MESSAGE\n");
|
||||
message->PrintToStream();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user