A few small corrections after the previous merge.

This commit is contained in:
Mike Lischke 2016-07-20 12:32:02 +02:00
parent ef247f1939
commit 91a7657d73
4 changed files with 6 additions and 11 deletions

View File

@ -39,8 +39,7 @@ using namespace antlr4::atn;
using namespace antlr4::misc;
const Ref<LexerMoreAction> LexerMoreAction::getInstance() {
static Ref<LexerMoreAction> instance = std::shared_ptr<LexerMoreAction>(
new LexerMoreAction());
static Ref<LexerMoreAction> instance(new LexerMoreAction());
return instance;
}

View File

@ -39,8 +39,7 @@ using namespace antlr4::atn;
using namespace antlr4::misc;
const Ref<LexerPopModeAction> LexerPopModeAction::getInstance() {
static Ref<LexerPopModeAction> instance = std::shared_ptr<LexerPopModeAction>(
new LexerPopModeAction());
static Ref<LexerPopModeAction> instance(new LexerPopModeAction());
return instance;
}

View File

@ -34,8 +34,6 @@
#include "atn/LexerAction.h"
#include "atn/LexerActionType.h"
#include <memory>
namespace antlr4 {
namespace atn {

View File

@ -39,8 +39,7 @@ using namespace antlr4::atn;
using namespace antlr4::misc;
const Ref<LexerSkipAction> LexerSkipAction::getInstance() {
static Ref<LexerSkipAction> instance = std::shared_ptr<LexerSkipAction>(
new LexerSkipAction());
static Ref<LexerSkipAction> instance(new LexerSkipAction());
return instance;
}