-rw-r--r-- | libopie2/opiecore/okeyconfigmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiecore/okeyconfigmanager.cpp b/libopie2/opiecore/okeyconfigmanager.cpp index ad0f7f7..ccb96cc 100644 --- a/libopie2/opiecore/okeyconfigmanager.cpp +++ b/libopie2/opiecore/okeyconfigmanager.cpp | |||
@@ -500,17 +500,17 @@ OKeyConfigManager::~OKeyConfigManager() { | |||
500 | * Load the Configuration from the OConfig | 500 | * Load the Configuration from the OConfig |
501 | * If a Key is restricted but was in the config we will | 501 | * If a Key is restricted but was in the config we will |
502 | * make it be the empty key paur | 502 | * make it be the empty key paur |
503 | * We will change the group but restore to the previous. | 503 | * We will change the group but restore to the previous. |
504 | * | 504 | * |
505 | * @see OKeyPair::emptyKey | 505 | * @see OKeyPair::emptyKey |
506 | */ | 506 | */ |
507 | void OKeyConfigManager::load() { | 507 | void OKeyConfigManager::load() { |
508 | Opie::Core::OConfigGroupSaver( m_conf, m_group ); | 508 | Opie::Core::OConfigGroupSaver grp( m_conf, m_group ); |
509 | 509 | ||
510 | /* | 510 | /* |
511 | * Read each item | 511 | * Read each item |
512 | */ | 512 | */ |
513 | int key, mod; | 513 | int key, mod; |
514 | for( OKeyConfigItem::List::Iterator it = m_keys.begin(); it != m_keys.end(); ++it ) { | 514 | for( OKeyConfigItem::List::Iterator it = m_keys.begin(); it != m_keys.end(); ++it ) { |
515 | key = m_conf->readNumEntry( (*it).configKey()+"key", | 515 | key = m_conf->readNumEntry( (*it).configKey()+"key", |
516 | (*it).defaultKeyPair().keycode() ); | 516 | (*it).defaultKeyPair().keycode() ); |
@@ -527,17 +527,17 @@ void OKeyConfigManager::load() { | |||
527 | } | 527 | } |
528 | 528 | ||
529 | /** | 529 | /** |
530 | * We will save the current configuration | 530 | * We will save the current configuration |
531 | * to the OConfig. We will change the group but restore | 531 | * to the OConfig. We will change the group but restore |
532 | * to the previous | 532 | * to the previous |
533 | */ | 533 | */ |
534 | void OKeyConfigManager::save() { | 534 | void OKeyConfigManager::save() { |
535 | Opie::Core::OConfigGroupSaver( m_conf, m_group ); | 535 | Opie::Core::OConfigGroupSaver grp( m_conf, m_group ); |
536 | 536 | ||
537 | /* | 537 | /* |
538 | * Write each item | 538 | * Write each item |
539 | */ | 539 | */ |
540 | for( OKeyConfigItem::List::Iterator it = m_keys.begin();it != m_keys.end(); ++it ) { | 540 | for( OKeyConfigItem::List::Iterator it = m_keys.begin();it != m_keys.end(); ++it ) { |
541 | /* skip empty items */ | 541 | /* skip empty items */ |
542 | if ( (*it).isEmpty() ) | 542 | if ( (*it).isEmpty() ) |
543 | continue; | 543 | continue; |