Ignore:
Timestamp:
Dec 11, 2013, 10:48:59 AM (11 years ago)
Author:
rybkin
Message:

See C.L. 518

File:
1 edited

Legend:

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

    r656 r659  
    5050                          CmtSystem::cmt_string_vector& value,
    5151                          const cmt_string& tag_name = "") const;
    52   inline const bool& get_path_strip () const;
    53   inline void set_path_strip (const bool& path_strip);
     52  inline const bool& get_strip_path () const;
     53  inline void set_strip_path (const bool& strip_path);
    5454
    5555  PathBuilder ();
    56   PathBuilder (bool path_strip);
     56  PathBuilder (bool strip_path);
    5757
    5858private:
    59   bool m_path_strip;
     59  bool m_strip_path;
    6060};
    6161//-------------------------------------------------------------
     
    754754{
    755755  static SetBuilder Set;
    756   static PathBuilder Path (Cmt::get_path_strip ());
     756  static PathBuilder Path (Cmt::get_strip_path ());
    757757  //static PathBuilder Path;
    758758  static MacroBuilder Macro;
     
    12551255
    12561256//-------------------------------------------------------------
    1257 bool Symbol::set_path_strip (const bool& path_strip)
     1257bool Symbol::set_strip_path (const bool& strip_path)
    12581258{
    12591259  // searching for a path symbol
     
    12641264      if (symbol.type == Symbol::SymbolPath)
    12651265        {
    1266           static_cast<PathBuilder*> (symbol.builder)->set_path_strip (path_strip);
     1266          static_cast<PathBuilder*> (symbol.builder)->set_strip_path (strip_path);
    12671267          return true;
    12681268        }
     
    25702570//-------------------------------------------------------------
    25712571PathBuilder::PathBuilder ()
    2572   : m_path_strip (false)
    2573 {
    2574 }
    2575 
    2576 //-------------------------------------------------------------
    2577 PathBuilder::PathBuilder (bool path_strip)
     2572  : m_strip_path (false)
     2573{
     2574}
     2575
     2576//-------------------------------------------------------------
     2577PathBuilder::PathBuilder (bool strip_path)
    25782578{
    25792579  PathBuilder ();
    2580   m_path_strip = path_strip;
     2580  m_strip_path = strip_path;
    25812581}
    25822582
     
    30333033      if (!exists)
    30343034        {
    3035           if (m_path_strip)
     3035          if (m_strip_path)
    30363036            {
    30373037              if (!reg.match (v))
     
    30843084
    30853085//-------------------------------------------------------------
    3086 inline const bool& PathBuilder::get_path_strip () const
    3087 {
    3088   return m_path_strip;
    3089 }
    3090 
    3091 //-------------------------------------------------------------
    3092 inline void PathBuilder::set_path_strip (const bool& path_strip)
    3093 {
    3094   m_path_strip = path_strip;
     3086inline const bool& PathBuilder::get_strip_path () const
     3087{
     3088  return m_strip_path;
     3089}
     3090
     3091//-------------------------------------------------------------
     3092inline void PathBuilder::set_strip_path (const bool& strip_path)
     3093{
     3094  m_strip_path = strip_path;
    30953095}
    30963096
     
    37123712        if (!pb)
    37133713          pb = static_cast<PathBuilder*> (symbol.builder);
    3714         if (pb->get_path_strip ())
     3714        if (pb->get_strip_path ())
    37153715          {
    37163716            /*
     
    37843784              }
    37853785          }
    3786         else // (!pb->get_path_strip ())
     3786        else // (!pb->get_strip_path ())
    37873787          {
    37883788            if (CmtError::has_pending_error ())
Note: See TracChangeset for help on using the changeset viewer.