Ignore:
Timestamp:
Jan 6, 2014, 3:40:25 PM (10 years ago)
Author:
rybkin
Message:

See C.L. 521

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_symbol.cxx

    r660 r662  
    5353  inline void set_strip_path (const bool& strip_path);
    5454
     55  static PathBuilder* get_path_builder ();
     56
     57private:
    5558  PathBuilder ();
    5659  PathBuilder (bool strip_path);
    57 
    58 private:
     60  PathBuilder (const PathBuilder& other);
     61  PathBuilder& operator = (const PathBuilder& other);
     62
    5963  bool m_strip_path;
    6064};
     
    754758{
    755759  static SetBuilder Set;
    756   static PathBuilder Path (Cmt::get_strip_path ());
     760  static PathBuilder* PathPtr (PathBuilder::get_path_builder ());
     761  //static PathBuilder Path (Cmt::get_strip_path ());
    757762  //static PathBuilder Path;
    758763  static MacroBuilder Macro;
     
    915920      break;
    916921    case SymbolPath:
    917       symbol.builder = &Path;
     922      symbol.builder = PathPtr;
     923      //symbol.builder = &Path;
    918924      break;
    919925    case SymbolAlias:
     
    12611267bool Symbol::set_strip_path (const bool& strip_path)
    12621268{
     1269  PathBuilder::get_path_builder ()->set_strip_path (strip_path);
     1270  return true;
     1271  /*
    12631272  // searching for a path symbol
    12641273  for (int number = 0; number < Symbol::symbol_number (); number++)
     
    12741283
    12751284  return false;
     1285  */
    12761286}
    12771287
     
    25952605}
    25962606*/
     2607//-------------------------------------------------------------
     2608PathBuilder* PathBuilder::get_path_builder ()
     2609{
     2610  static PathBuilder Path (Cmt::get_strip_path ());
     2611  return &Path;
     2612}
     2613
    25972614//-------------------------------------------------------------
    25982615PathBuilder::PathBuilder ()
Note: See TracChangeset for help on using the changeset viewer.