Skip to content
Snippets Groups Projects
Commit aafd1c66 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix compile warning initialised after

parent d98faa7d
No related branches found
No related tags found
No related merge requests found
...@@ -18,14 +18,14 @@ UnknownGrammar::UnknownGrammar() : initialSymbol(NULL) { ...@@ -18,14 +18,14 @@ UnknownGrammar::UnknownGrammar() : initialSymbol(NULL) {
} }
   
UnknownGrammar::UnknownGrammar(const UnknownGrammar& other) : UnknownGrammar::UnknownGrammar(const UnknownGrammar& other) :
nonterminalAlphabet(other.nonterminalAlphabet), terminalAlphabet(other.terminalAlphabet), initialSymbol(NULL), rules(other.rules) { terminalAlphabet(other.terminalAlphabet), nonterminalAlphabet(other.nonterminalAlphabet), rules(other.rules), initialSymbol(NULL) {
if(other.initialSymbol) if(other.initialSymbol)
initialSymbol = new alphabet::Symbol(*other.initialSymbol); initialSymbol = new alphabet::Symbol(*other.initialSymbol);
   
} }
   
UnknownGrammar::UnknownGrammar(UnknownGrammar&& other) noexcept : UnknownGrammar::UnknownGrammar(UnknownGrammar&& other) noexcept :
nonterminalAlphabet(std::move(other.nonterminalAlphabet)), terminalAlphabet(std::move(other.terminalAlphabet)), initialSymbol(NULL), rules(std::move(other.rules)) { terminalAlphabet(std::move(other.terminalAlphabet)), nonterminalAlphabet(std::move(other.nonterminalAlphabet)), rules(std::move(other.rules)), initialSymbol(NULL) {
if(other.initialSymbol) if(other.initialSymbol)
initialSymbol = new alphabet::Symbol(std::move(*other.initialSymbol)); initialSymbol = new alphabet::Symbol(std::move(*other.initialSymbol));
} }
......
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