Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5837


Ignore:
Timestamp:
Sep 30, 2009, 12:13:01 AM (15 years ago)
Author:
rgrieder
Message:

Removed two unnecessary boost/filesystem.hpp includes.

Location:
code/branches/core5/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/CommandLine.cc

    r5836 r5837  
    3131#include <algorithm>
    3232#include <sstream>
    33 #include <boost/filesystem.hpp>
    3433
    3534#include "util/Convert.h"
     
    348347    {
    349348        std::string filename = CommandLine::getValue("optionsFile").getString();
    350         boost::filesystem::path filepath(PathConfig::getConfigPath() / filename);
    351349
    352350        // look for additional arguments in given file or start.ini as default
    353351        // They will not overwrite the arguments given directly
    354352        std::ifstream file;
    355         file.open(filepath.string().c_str());
     353        file.open((PathConfig::getConfigPathString() + filename).c_str());
    356354        std::vector<std::string> args;
    357355        if (file)
  • code/branches/core5/src/libraries/core/Language.cc

    r5836 r5837  
    3535
    3636#include <fstream>
    37 #include <boost/filesystem.hpp>
    38 
    3937#include "util/Debug.h"
    4038#include "Core.h"
     
    201199        COUT(4) << "Read default language file." << std::endl;
    202200
    203         boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(this->defaultLanguage_));
     201        std::string filepath = PathConfig::getConfigPathString() + getFilename(this->defaultLanguage_);
    204202
    205203        // This creates the file if it's not existing
    206204        std::ofstream createFile;
    207         createFile.open(filepath.string().c_str(), std::fstream::app);
     205        createFile.open(filepath.c_str(), std::fstream::app);
    208206        createFile.close();
    209207
    210208        // Open the file
    211209        std::ifstream file;
    212         file.open(filepath.string().c_str(), std::fstream::in);
     210        file.open(filepath.c_str(), std::fstream::in);
    213211
    214212        if (!file.is_open())
     
    250248        COUT(4) << "Read translated language file (" << Core::getLanguage() << ")." << std::endl;
    251249
    252         boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(Core::getLanguage()));
     250        std::string filepath = PathConfig::getConfigPathString() + getFilename(Core::getLanguage());
    253251
    254252        // Open the file
    255253        std::ifstream file;
    256         file.open(filepath.string().c_str(), std::fstream::in);
     254        file.open(filepath.c_str(), std::fstream::in);
    257255
    258256        if (!file.is_open())
     
    304302        COUT(4) << "Language: Write default language file." << std::endl;
    305303
    306         boost::filesystem::path filepath(PathConfig::getConfigPath() / getFilename(this->defaultLanguage_));
     304        std::string filepath = PathConfig::getConfigPathString() + getFilename(this->defaultLanguage_);
    307305
    308306        // Open the file
    309307        std::ofstream file;
    310         file.open(filepath.string().c_str(), std::fstream::out);
     308        file.open(filepath.c_str(), std::fstream::out);
    311309
    312310        if (!file.is_open())
Note: See TracChangeset for help on using the changeset viewer.