Skip to content
Snippets Groups Projects
Commit f12dfebd authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Remove refenreces in conversion objects

Copy whole source object into class, we have no control over its lifetime.
parent 4de83843
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
protected: protected:
AbstractFAtoREConverter( const automaton::FSM & automaton ); AbstractFAtoREConverter( const automaton::FSM & automaton );
   
const automaton::FSM & m_automaton; const automaton::FSM m_automaton;
regexp::RegExp m_re; regexp::RegExp m_re;
}; };
   
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
~AbstractFAtoRGConverter( void ); ~AbstractFAtoRGConverter( void );
   
protected: protected:
const automaton::FSM & m_fsm; const automaton::FSM m_fsm;
}; };
   
} /* namespace conversions */ } /* namespace conversions */
......
...@@ -21,7 +21,7 @@ public: ...@@ -21,7 +21,7 @@ public:
protected: protected:
AbstractREtoFAConverter(const regexp::RegExp & re ); AbstractREtoFAConverter(const regexp::RegExp & re );
   
const regexp::RegExp & m_re; const regexp::RegExp m_re;
automaton::FSM m_fsm; automaton::FSM m_fsm;
}; };
   
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
protected: protected:
AbstractREtoRGConverter( const regexp::RegExp & re ); AbstractREtoRGConverter( const regexp::RegExp & re );
   
const regexp::RegExp & m_re; const regexp::RegExp m_re;
}; };
   
} /* namespace conversions */ } /* namespace conversions */
......
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
   
protected: protected:
AbstractLRGtoFAConverter( const grammar::LeftRegularGrammar & lrg ); AbstractLRGtoFAConverter( const grammar::LeftRegularGrammar & lrg );
const grammar::LeftRegularGrammar & m_grammar; const grammar::LeftRegularGrammar m_grammar;
   
}; };
   
......
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
   
protected: protected:
AbstractRRGtoFAConverter( const grammar::RightRegularGrammar & rrg ); AbstractRRGtoFAConverter( const grammar::RightRegularGrammar & rrg );
const grammar::RightRegularGrammar & m_grammar; const grammar::RightRegularGrammar m_grammar;
}; };
   
} /* namespace conversions */ } /* namespace conversions */
......
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
   
protected: protected:
AbstractLRGtoREConverter( const grammar::LeftRegularGrammar & lrg ); AbstractLRGtoREConverter( const grammar::LeftRegularGrammar & lrg );
const grammar::LeftRegularGrammar & m_grammar; const grammar::LeftRegularGrammar m_grammar;
}; };
   
} /* namespace conversions */ } /* namespace conversions */
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
protected: protected:
AbstractRRGtoREConverter( const grammar::RightRegularGrammar & rrg ); AbstractRRGtoREConverter( const grammar::RightRegularGrammar & rrg );
   
const grammar::RightRegularGrammar & m_grammar; const grammar::RightRegularGrammar m_grammar;
}; };
   
} /* namespace conversions */ } /* namespace conversions */
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
protected: protected:
AbstractLRGtoRRGConverter( const grammar::LeftRegularGrammar & lrg ); AbstractLRGtoRRGConverter( const grammar::LeftRegularGrammar & lrg );
   
const grammar::LeftRegularGrammar & m_lrg; const grammar::LeftRegularGrammar m_lrg;
grammar::RightRegularGrammar m_rrg; grammar::RightRegularGrammar m_rrg;
}; };
   
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
virtual grammar::LeftRegularGrammar convert( void ) = 0; virtual grammar::LeftRegularGrammar convert( void ) = 0;
   
protected: protected:
const grammar::RightRegularGrammar & m_rrg; const grammar::RightRegularGrammar m_rrg;
grammar::LeftRegularGrammar m_lrg; grammar::LeftRegularGrammar m_lrg;
}; };
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment