From: Axel Naumann Date: Fri, 12 Sep 2014 12:10:13 +0000 (+0200) Subject: No need to be more const correct than getCI()->getSema()! X-Git-Tag: v6-02-00-rc1~128^2~6 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=adbbd0cd58791190c344f933498bcf4f6e55150a No need to be more const correct than getCI()->getSema()! --- diff --git a/interpreter/cling/include/cling/Interpreter/Interpreter.h b/interpreter/cling/include/cling/Interpreter/Interpreter.h index 6a0084b..710a655 100644 --- a/interpreter/cling/include/cling/Interpreter/Interpreter.h +++ b/interpreter/cling/include/cling/Interpreter/Interpreter.h @@ -546,8 +546,7 @@ namespace cling { void enableRawInput(bool raw = true) { m_RawInputEnabled = raw; } clang::CompilerInstance* getCI() const; - const clang::Sema& getSema() const; - clang::Sema& getSema(); + clang::Sema& getSema() const; llvm::ExecutionEngine* getExecutionEngine() const; //FIXME: This must be in InterpreterCallbacks. diff --git a/interpreter/cling/lib/Interpreter/Interpreter.cpp b/interpreter/cling/lib/Interpreter/Interpreter.cpp index 475682e..6612a9a 100644 --- a/interpreter/cling/lib/Interpreter/Interpreter.cpp +++ b/interpreter/cling/lib/Interpreter/Interpreter.cpp @@ -471,11 +471,7 @@ namespace cling { return m_IncrParser->getCI(); } - const Sema& Interpreter::getSema() const { - return getCI()->getSema(); - } - - Sema& Interpreter::getSema() { + Sema& Interpreter::getSema() const { return getCI()->getSema(); }