Automatic whitespace cleanup. No functional change.

This commit is contained in:
Matt Madia
2013-08-17 17:26:39 -04:00
parent 057633446b
commit bbadab8989
+8 -8
View File
@@ -56,7 +56,7 @@ EndpointInfo::EndpointInfo(int32 id)
} }
endpoint->Release(); endpoint->Release();
} }
} }
} }
@@ -64,7 +64,7 @@ EndpointInfo::EndpointInfo(const EndpointInfo& info)
: :
fId(info.fId) fId(info.fId)
{ {
fIcon = (info.fIcon) ? new BBitmap(info.fIcon) : NULL; fIcon = (info.fIcon) ? new BBitmap(info.fIcon) : NULL;
} }
@@ -102,16 +102,16 @@ CreateIcon(const BMessage* msg, icon_size which)
ssize_t size; ssize_t size;
BBitmap* bitmap = NULL; BBitmap* bitmap = NULL;
// See if a Haiku Vector Icon available // See if a Haiku Vector Icon available
if (msg->FindData(VECTOR_ICON_NAME, VECTOR_ICON_TYPE, &data, if (msg->FindData(VECTOR_ICON_NAME, VECTOR_ICON_TYPE, &data,
&size) == B_OK) { &size) == B_OK) {
BRect r(0, 0, LARGE_ICON_SIZE - 1, LARGE_ICON_SIZE - 1); BRect r(0, 0, LARGE_ICON_SIZE - 1, LARGE_ICON_SIZE - 1);
bitmap = new BBitmap(r, B_RGBA32); bitmap = new BBitmap(r, B_RGBA32);
if (BIconUtils::GetVectorIcon((const uint8*)data, size, if (BIconUtils::GetVectorIcon((const uint8*)data, size,
bitmap) == B_OK) { bitmap) == B_OK) {
printf("Created vector icon bitmap\n"); printf("Created vector icon bitmap\n");
return bitmap; return bitmap;
} else } else
delete bitmap; delete bitmap;
} }
@@ -119,7 +119,7 @@ CreateIcon(const BMessage* msg, icon_size which)
float bmapSize; float bmapSize;
uint32 iconType; uint32 iconType;
const char* iconName; const char* iconName;
if (which == B_LARGE_ICON) { if (which == B_LARGE_ICON) {
bmapSize = LARGE_ICON_SIZE - 1; bmapSize = LARGE_ICON_SIZE - 1;
iconType = LARGE_ICON_TYPE; iconType = LARGE_ICON_TYPE;
@@ -131,7 +131,7 @@ CreateIcon(const BMessage* msg, icon_size which)
} else { } else {
return NULL; return NULL;
} }
if (msg->FindData(iconName, iconType, &data, &size) == B_OK) { if (msg->FindData(iconName, iconType, &data, &size) == B_OK) {
bitmap = new BBitmap(BRect(0, 0, bmapSize, bmapSize), bitmap = new BBitmap(BRect(0, 0, bmapSize, bmapSize),
ICON_COLOR_SPACE); ICON_COLOR_SPACE);