Compiler warning fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37274 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -180,7 +180,7 @@ Prefs::GetMiniWindowRect()
|
||||
|
||||
|
||||
bool
|
||||
Prefs::GetInt(char *name, int *value, int *defaultvalue)
|
||||
Prefs::GetInt(const char *name, int *value, int *defaultvalue)
|
||||
{
|
||||
status_t err = fFile->ReadAttr(name, B_INT32_TYPE, 0, value, 4);
|
||||
if (err == B_ENTRY_NOT_FOUND) {
|
||||
@@ -199,7 +199,7 @@ Prefs::GetInt(char *name, int *value, int *defaultvalue)
|
||||
|
||||
|
||||
bool
|
||||
Prefs::GetBool(char *name, bool *value, bool *defaultvalue)
|
||||
Prefs::GetBool(const char *name, bool *value, bool *defaultvalue)
|
||||
{
|
||||
status_t err = fFile->ReadAttr(name, B_BOOL_TYPE, 0, value, 1);
|
||||
if (err == B_ENTRY_NOT_FOUND) {
|
||||
@@ -218,7 +218,7 @@ Prefs::GetBool(char *name, bool *value, bool *defaultvalue)
|
||||
|
||||
|
||||
bool
|
||||
Prefs::GetRect(char *name, BRect *value, BRect *defaultvalue)
|
||||
Prefs::GetRect(const char *name, BRect *value, BRect *defaultvalue)
|
||||
{
|
||||
status_t err = fFile->ReadAttr(name, B_RECT_TYPE, 0, value, sizeof(BRect));
|
||||
if (err == B_ENTRY_NOT_FOUND) {
|
||||
@@ -237,7 +237,7 @@ Prefs::GetRect(char *name, BRect *value, BRect *defaultvalue)
|
||||
|
||||
|
||||
bool
|
||||
Prefs::PutInt(char *name, int *value)
|
||||
Prefs::PutInt(const char *name, int *value)
|
||||
{
|
||||
status_t err = fFile->WriteAttr(name, B_INT32_TYPE, 0, value, 4);
|
||||
if (err < 0) {
|
||||
@@ -250,7 +250,7 @@ Prefs::PutInt(char *name, int *value)
|
||||
|
||||
|
||||
bool
|
||||
Prefs::PutBool(char *name, bool *value)
|
||||
Prefs::PutBool(const char *name, bool *value)
|
||||
{
|
||||
status_t err = fFile->WriteAttr(name, B_BOOL_TYPE, 0, value, 1);
|
||||
if (err < 0) {
|
||||
@@ -263,7 +263,7 @@ Prefs::PutBool(char *name, bool *value)
|
||||
|
||||
|
||||
bool
|
||||
Prefs::PutRect(char *name, BRect *value)
|
||||
Prefs::PutRect(const char *name, BRect *value)
|
||||
{
|
||||
status_t err = fFile->WriteAttr(name, B_RECT_TYPE, 0, value, sizeof(BRect));
|
||||
if (err < 0) {
|
||||
|
||||
@@ -29,12 +29,12 @@ class Prefs {
|
||||
private:
|
||||
BFile *fFile;
|
||||
|
||||
bool GetInt(char *name, int *value, int *defaultvalue);
|
||||
bool GetBool(char *name, bool *value, bool *defaultvalue);
|
||||
bool GetRect(char *name, BRect *value, BRect *defaultvalue);
|
||||
bool PutInt(char *name, int *value);
|
||||
bool PutBool(char *name, bool *value);
|
||||
bool PutRect(char *name, BRect *value);
|
||||
bool GetInt(const char *name, int *value, int *defaultvalue);
|
||||
bool GetBool(const char *name, bool *value, bool *defaultvalue);
|
||||
bool GetRect(const char *name, BRect *value, BRect *defaultvalue);
|
||||
bool PutInt(const char *name, int *value);
|
||||
bool PutBool(const char *name, bool *value);
|
||||
bool PutRect(const char *name, BRect *value);
|
||||
|
||||
float GetNormalWindowHeight();
|
||||
void ComputeNormalWindowSize();
|
||||
|
||||
Reference in New Issue
Block a user