Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 17, 2008, 11:49:08 PM (16 years ago)
Author:
rgrieder
Message:

changed return type of ConfigFileManager::getInstance() to ConfigFileManager& (from pointer before).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/KeyBinder.cc

    r1755 r1795  
    3939#include "core/ConfigValueIncludes.h"
    4040#include "core/CoreIncludes.h"
     41#include "core/ConfigFileManager.h"
    4142#include "InputCommands.h"
    4243
     
    222223        if (!infile)
    223224        {
    224             ConfigFileManager::getInstance()->setFile(CFT_Keybindings, "def_keybindings.ini");
    225             ConfigFileManager::getInstance()->save(CFT_Keybindings, "keybindings.ini");
     225            ConfigFileManager::getInstance().setFile(CFT_Keybindings, "def_keybindings.ini");
     226            ConfigFileManager::getInstance().save(CFT_Keybindings, "keybindings.ini");
    226227        }
    227228        else
    228229            infile.close();
    229         ConfigFileManager::getInstance()->setFile(CFT_Keybindings, "keybindings.ini");
     230        ConfigFileManager::getInstance().setFile(CFT_Keybindings, "keybindings.ini");
    230231
    231232        // parse key bindings
Note: See TracChangeset for help on using the changeset viewer.