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
|
||||
BString attributeString;
|
||||
BRect bounds;
|
||||
uint32 attrType;
|
||||
size_t attrSize;
|
||||
uint32 attrType = 0;
|
||||
size_t attrSize = 0;
|
||||
switch (which) {
|
||||
case B_MINI_ICON:
|
||||
attributeString = kMiniIconAttribute;
|
||||
@@ -842,9 +842,9 @@ BAppFileInfo::SetIconForType(const char *type, const BBitmap *icon,
|
||||
// set some icon size related variables
|
||||
BString attributeString;
|
||||
BRect bounds;
|
||||
uint32 attrType;
|
||||
size_t attrSize;
|
||||
int32 resourceID;
|
||||
uint32 attrType = 0;
|
||||
size_t attrSize = 0;
|
||||
int32 resourceID = 0;
|
||||
switch (which) {
|
||||
case B_MINI_ICON:
|
||||
attributeString = kMiniIconAttribute;
|
||||
|
||||
@@ -222,7 +222,7 @@ BFile::SetTo(const char *path, uint32 openMode)
|
||||
// analyze 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.
|
||||
BPrivate::Storage::OpenFlags openFlags;
|
||||
BPrivate::Storage::OpenFlags openFlags = 0;
|
||||
switch (openMode & O_RWMASK) {
|
||||
case B_READ_ONLY:
|
||||
openFlags = O_RDONLY;
|
||||
|
||||
@@ -223,8 +223,8 @@ BNodeInfo::GetIcon(BBitmap *icon, icon_size k) const
|
||||
// set some icon size related variables
|
||||
const char *attribute = NULL;
|
||||
BRect bounds;
|
||||
uint32 attrType;
|
||||
size_t attrSize;
|
||||
uint32 attrType = 0;
|
||||
size_t attrSize = 0;
|
||||
switch (k) {
|
||||
case B_MINI_ICON:
|
||||
attribute = kNIMiniIconAttribute;
|
||||
@@ -319,8 +319,8 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
|
||||
// set some icon size related variables
|
||||
const char *attribute = NULL;
|
||||
BRect bounds;
|
||||
uint32 attrType;
|
||||
size_t attrSize;
|
||||
uint32 attrType = 0;
|
||||
size_t attrSize = 0;
|
||||
switch (k) {
|
||||
case B_MINI_ICON:
|
||||
attribute = kNIMiniIconAttribute;
|
||||
@@ -349,7 +349,7 @@ BNodeInfo::SetIcon(const BBitmap *icon, icon_size k)
|
||||
if (error == B_OK) {
|
||||
if (icon) {
|
||||
bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
|
||||
ssize_t written;
|
||||
ssize_t written = 0;
|
||||
if (otherColorSpace) {
|
||||
BBitmap bitmap(bounds, B_CMAP8);
|
||||
error = bitmap.InitCheck();
|
||||
|
||||
Reference in New Issue
Block a user