Changeset 11037 for trunk/FACT++/src


Ignore:
Timestamp:
06/16/11 19:39:38 (13 years ago)
Author:
tbretz
Message:
Replaced deprecated boost::filesystem::basename; removed libtoolize workaround
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/FACT.cc

    r10712 r11037  
    1111
    1212#include <boost/filesystem.hpp>
     13
     14#include "tools.h"
    1315
    1416// --------------------------------------------------------------------------
     
    4547void FACT::PrintVersion(const char *name)
    4648{
    47     std::string n = boost::filesystem::basename(name);
    48     if (n.substr(0, 3)=="lt-")
    49         n = n.substr(3);
     49    const std::string n = boost::filesystem::path(name).filename();
    5050
    5151    std::cout <<
  • trunk/FACT++/src/ReadlineColor.cc

    r10998 r11037  
    1414#include "WindowLog.h"
    1515
     16#include "tools.h"
     17
    1618using namespace std;
    1719
     
    2325bool ReadlineColor::PrintBootMsg(ostream &out, const string &name, bool interactive)
    2426{
    25     string n = boost::filesystem::basename(name);
    26     if (n.substr(0, 3)=="lt-")
    27         n = n.substr(3);
     27    const string n = boost::filesystem::path(name).filename();
    2828
    2929    out << kBlue << kBold << kUnderline << "\n Master Control Program (compiled "__DATE__" " __TIME__ << ") " << endl;
Note: See TracChangeset for help on using the changeset viewer.