Fix gcc4 errors and warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ class MyInvoker : public BInvoker {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
MyInvoker::MyInvoker(BMessage* message, const BHandler* handler, const BLooper* looper = NULL)
|
MyInvoker::MyInvoker(BMessage* message, const BHandler* handler, const BLooper* looper)
|
||||||
: BInvoker(message, handler, looper)
|
: BInvoker(message, handler, looper)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -36,8 +36,8 @@ extern status_t _get_nth_font_folder_(long, font_folder_info **);
|
|||||||
|
|
||||||
status_t find_font_file(entry_ref *to, font_family family, font_style style, float size)
|
status_t find_font_file(entry_ref *to, font_family family, font_style style, float size)
|
||||||
{
|
{
|
||||||
status_t err = ENOENT;
|
|
||||||
#ifdef B_BEOS_VERSION_DANO
|
#ifdef B_BEOS_VERSION_DANO
|
||||||
|
status_t err = ENOENT;
|
||||||
long i, fontcount, foldercount;
|
long i, fontcount, foldercount;
|
||||||
font_file_info *ffi;
|
font_file_info *ffi;
|
||||||
font_folder_info *fdi;
|
font_folder_info *fdi;
|
||||||
@@ -331,7 +331,7 @@ FindFont(BMessage &message, const char *name, int32 index, BFont *f)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
AddFont(BMessage &message, const char *name, BFont *f, int32 count = 1)
|
AddFont(BMessage &message, const char *name, BFont *f, int32 count)
|
||||||
{
|
{
|
||||||
#ifdef B_BEOS_VERSION_DANO
|
#ifdef B_BEOS_VERSION_DANO
|
||||||
return message.AddFlat(name, f, count);
|
return message.AddFlat(name, f, count);
|
||||||
|
|||||||
+1
-4
@@ -137,9 +137,6 @@ status_t UISettingsThemesAddon::RunPreferencesPanel()
|
|||||||
|
|
||||||
status_t UISettingsThemesAddon::AddNames(BMessage &names)
|
status_t UISettingsThemesAddon::AddNames(BMessage &names)
|
||||||
{
|
{
|
||||||
const char *str, *value;
|
|
||||||
type_code code;
|
|
||||||
int32 i;
|
|
||||||
FENTRY;
|
FENTRY;
|
||||||
|
|
||||||
names.AddString(Z_THEME_UI_SETTINGS, "UI Settings");
|
names.AddString(Z_THEME_UI_SETTINGS, "UI Settings");
|
||||||
@@ -266,10 +263,10 @@ status_t UISettingsThemesAddon::ApplyDefaultTheme(uint32 flags)
|
|||||||
BMessage theme;
|
BMessage theme;
|
||||||
BMessage uisettings;
|
BMessage uisettings;
|
||||||
BFont fnt;
|
BFont fnt;
|
||||||
status_t err;
|
|
||||||
FENTRY;
|
FENTRY;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
status_t err;
|
||||||
err = get_default_settings(&uisettings);
|
err = get_default_settings(&uisettings);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
+2
-2
@@ -88,7 +88,7 @@ status_t SoundplayThemesAddon::ApplyTheme(BMessage &theme, uint32 flags)
|
|||||||
BMessage command(B_COUNT_PROPERTIES);
|
BMessage command(B_COUNT_PROPERTIES);
|
||||||
BMessage answer;
|
BMessage answer;
|
||||||
command.AddSpecifier("Window");
|
command.AddSpecifier("Window");
|
||||||
err = msgr.SendMessage(&command, &answer,2E6,2E6);
|
err = msgr.SendMessage(&command, &answer,2000000LL,2000000LL);
|
||||||
if(B_OK == err) {
|
if(B_OK == err) {
|
||||||
if (answer.FindInt32("result", &wincnt) != B_OK)
|
if (answer.FindInt32("result", &wincnt) != B_OK)
|
||||||
wincnt = 1;
|
wincnt = 1;
|
||||||
@@ -100,7 +100,7 @@ status_t SoundplayThemesAddon::ApplyTheme(BMessage &theme, uint32 flags)
|
|||||||
for (int32 i = 0; i < wincnt; i++) {
|
for (int32 i = 0; i < wincnt; i++) {
|
||||||
BMessage wmsg(msg);
|
BMessage wmsg(msg);
|
||||||
wmsg.AddSpecifier("Window", i);
|
wmsg.AddSpecifier("Window", i);
|
||||||
msgr.SendMessage(&wmsg, (BHandler *)NULL, 2E6);
|
msgr.SendMessage(&wmsg, (BHandler *)NULL, 2000000LL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user