Now uses a global header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9055 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
|
||||
#include "KeyboardSettings.h"
|
||||
|
||||
const char KeyboardSettings::kKeyboardSettingsFile[] = "Keyboard_settings";
|
||||
|
||||
KeyboardSettings::KeyboardSettings()
|
||||
{
|
||||
fSettings.key_repeat_delay=200;
|
||||
@@ -25,7 +23,7 @@ KeyboardSettings::KeyboardSettings()
|
||||
BPath path;
|
||||
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) == B_OK) {
|
||||
path.Append(kKeyboardSettingsFile);
|
||||
path.Append(kb_settings_file);
|
||||
BFile file(path.Path(), B_READ_ONLY);
|
||||
if (file.InitCheck() == B_OK) {
|
||||
// Now read in the data
|
||||
@@ -44,7 +42,7 @@ KeyboardSettings::~KeyboardSettings()
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY,&path) < B_OK)
|
||||
return;
|
||||
|
||||
path.Append(kKeyboardSettingsFile);
|
||||
path.Append(kb_settings_file);
|
||||
|
||||
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
||||
if (file.InitCheck() == B_OK) {
|
||||
|
||||
Reference in New Issue
Block a user