* Added missing 'const' for the entry_ref paramter of Load(), and Save().
* Cleaned up Keymap.h. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41331 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2010 Haiku Inc. All rights reserved.
|
||||
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -115,7 +115,7 @@ Keymap::DumpKeymap()
|
||||
|
||||
//! Load a map from a file
|
||||
status_t
|
||||
Keymap::Load(entry_ref &ref)
|
||||
Keymap::Load(const entry_ref& ref)
|
||||
{
|
||||
BEntry entry;
|
||||
status_t status = entry.SetTo(&ref, true);
|
||||
@@ -142,7 +142,7 @@ Keymap::Load(entry_ref &ref)
|
||||
|
||||
//! We save a map to a file
|
||||
status_t
|
||||
Keymap::Save(entry_ref& ref)
|
||||
Keymap::Save(const entry_ref& ref)
|
||||
{
|
||||
BFile file;
|
||||
status_t status = file.SetTo(&ref,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2010 Haiku Inc. All rights reserved.
|
||||
* Copyright 2004-2011 Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -34,15 +34,15 @@ public:
|
||||
void SetTarget(BMessenger target,
|
||||
BMessage* modificationMessage);
|
||||
|
||||
status_t Load(entry_ref& ref);
|
||||
status_t Save(entry_ref& ref);
|
||||
status_t Load(const entry_ref& ref);
|
||||
status_t Save(const entry_ref& ref);
|
||||
|
||||
void DumpKeymap();
|
||||
|
||||
status_t SetModifier(uint32 keyCode, uint32 modifier);
|
||||
|
||||
void SetDeadKeyEnabled(uint32 keyCode, uint32 modifiers,
|
||||
bool enabled);
|
||||
void SetDeadKeyEnabled(uint32 keyCode,
|
||||
uint32 modifiers, bool enabled);
|
||||
void GetDeadKeyTrigger(dead_key_index deadKeyIndex,
|
||||
BString& outTrigger);
|
||||
void SetDeadKeyTrigger(dead_key_index deadKeyIndex,
|
||||
|
||||
Reference in New Issue
Block a user