Changeset 662 for CMT/HEAD/source/cmt_symbol.cxx
- Timestamp:
- Jan 6, 2014, 3:40:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_symbol.cxx
r660 r662 53 53 inline void set_strip_path (const bool& strip_path); 54 54 55 static PathBuilder* get_path_builder (); 56 57 private: 55 58 PathBuilder (); 56 59 PathBuilder (bool strip_path); 57 58 private: 60 PathBuilder (const PathBuilder& other); 61 PathBuilder& operator = (const PathBuilder& other); 62 59 63 bool m_strip_path; 60 64 }; … … 754 758 { 755 759 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 ()); 757 762 //static PathBuilder Path; 758 763 static MacroBuilder Macro; … … 915 920 break; 916 921 case SymbolPath: 917 symbol.builder = &Path; 922 symbol.builder = PathPtr; 923 //symbol.builder = &Path; 918 924 break; 919 925 case SymbolAlias: … … 1261 1267 bool Symbol::set_strip_path (const bool& strip_path) 1262 1268 { 1269 PathBuilder::get_path_builder ()->set_strip_path (strip_path); 1270 return true; 1271 /* 1263 1272 // searching for a path symbol 1264 1273 for (int number = 0; number < Symbol::symbol_number (); number++) … … 1274 1283 1275 1284 return false; 1285 */ 1276 1286 } 1277 1287 … … 2595 2605 } 2596 2606 */ 2607 //------------------------------------------------------------- 2608 PathBuilder* PathBuilder::get_path_builder () 2609 { 2610 static PathBuilder Path (Cmt::get_strip_path ()); 2611 return &Path; 2612 } 2613 2597 2614 //------------------------------------------------------------- 2598 2615 PathBuilder::PathBuilder ()
Note: See TracChangeset
for help on using the changeset viewer.