Added variable initializations. Not necessary, but they please the compiler.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -742,8 +742,8 @@ BAppFileInfo::GetIconForType(const char *type, BBitmap *icon,
|
|||||||
// set some icon size related variables
|
// set some icon size related variables
|
||||||
BString attributeString;
|
BString attributeString;
|
||||||
BRect bounds;
|
BRect bounds;
|
||||||
uint32 attrType;
|
uint32 attrType = 0;
|
||||||
size_t attrSize;
|
size_t attrSize = 0;
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case B_MINI_ICON:
|
case B_MINI_ICON:
|
||||||
attributeString = kMiniIconAttribute;
|
attributeString = kMiniIconAttribute;
|
||||||
@@ -842,9 +842,9 @@ BAppFileInfo::SetIconForType(const char *type, const BBitmap *icon,
|
|||||||
// set some icon size related variables
|
// set some icon size related variables
|
||||||
BString attributeString;
|
BString attributeString;
|
||||||
BRect bounds;
|
BRect bounds;
|
||||||
uint32 attrType;
|
uint32 attrType = 0;
|
||||||
size_t attrSize;
|
size_t attrSize = 0;
|
||||||
int32 resourceID;
|
int32 resourceID = 0;
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case B_MINI_ICON:
|
case B_MINI_ICON:
|
||||||
attributeString = kMiniIconAttribute;
|
attributeString = kMiniIconAttribute;
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ BFile::SetTo(const char *path, uint32 openMode)
|
|||||||
// analyze openMode
|
// analyze openMode
|
||||||
// Well, it's a bit schizophrenic to convert the B_* style openMode
|
// Well, it's a bit schizophrenic to convert the B_* style openMode
|
||||||
// to POSIX style openFlags, but to use O_RWMASK to filter openMode.
|
// to POSIX style openFlags, but to use O_RWMASK to filter openMode.
|
||||||
BPrivate::Storage::OpenFlags openFlags;
|
BPrivate::Storage::OpenFlags openFlags = 0;
|
||||||
switch (openMode & O_RWMASK) {
|
switch (openMode & O_RWMASK) {
|
||||||
case B_READ_ONLY:
|
case B_READ_ONLY:
|
||||||
openFlags = O_RDONLY;
|
openFlags = O_RDONLY;
|
||||||
|
|||||||
@@ -223,8 +223,8 @@ BNodeInfo::GetIcon(BBitmap *icon, icon_size k) const
|
|||||||
// set some icon size related variables
|
// set some icon size related variables
|
||||||
const char *attribute = NULL;
|
const char *attribute = NULL;
|
||||||
BRect bounds;
|
BRect bounds;
|
||||||
uint32 attrType;
|
uint32 attrType = 0;
|
||||||
size_t attrSize;
|
size_t attrSize = 0;
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case B_MINI_ICON:
|
case B_MINI_ICON:
|
||||||
attribute = kNIMiniIconAttribute;
|
attribute = kNIMiniIconAttribute;
|
||||||
@@ -319,8 +319,8 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
|
|||||||
// set some icon size related variables
|
// set some icon size related variables
|
||||||
const char *attribute = NULL;
|
const char *attribute = NULL;
|
||||||
BRect bounds;
|
BRect bounds;
|
||||||
uint32 attrType;
|
uint32 attrType = 0;
|
||||||
size_t attrSize;
|
size_t attrSize = 0;
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case B_MINI_ICON:
|
case B_MINI_ICON:
|
||||||
attribute = kNIMiniIconAttribute;
|
attribute = kNIMiniIconAttribute;
|
||||||
@@ -349,7 +349,7 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
|
|||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
if (icon) {
|
if (icon) {
|
||||||
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
||||||
ssize_t written;
|
ssize_t written = 0;
|
||||||
if (otherColorSpace) {
|
if (otherColorSpace) {
|
||||||
BBitmap bitmap(bounds, B_CMAP8);
|
BBitmap bitmap(bounds, B_CMAP8);
|
||||||
error = bitmap.InitCheck();
|
error = bitmap.InitCheck();
|
||||||
|
|||||||
Reference in New Issue
Block a user