From 9a4e3324a4a9e9b503ef8bd00e01242812cc2d4b Mon Sep 17 00:00:00 2001 From: Warren Jacinto Date: Sun, 25 Feb 2024 22:47:25 +0530 Subject: [PATCH] remove const --- tools/ClangPlugin.cpp | 4 ++-- tools/ClangPlugin.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/ClangPlugin.cpp b/tools/ClangPlugin.cpp index 4f5c34d44..8e239ce37 100644 --- a/tools/ClangPlugin.cpp +++ b/tools/ClangPlugin.cpp @@ -317,8 +317,8 @@ namespace clad { clad::CladTimerGroup::CladTimerGroup() : m_Tg("Timers for Clad Funcs", "Timers for Clad Funcs") {} - void clad::CladTimerGroup::StartNewTimer(const llvm::StringRef TimerName, - const llvm::StringRef TimerDesc) { + void clad::CladTimerGroup::StartNewTimer(llvm::StringRef TimerName, + llvm::StringRef TimerDesc) { std::unique_ptr tm = std::make_unique(TimerName, TimerDesc, m_Tg); Timers.push_back(std::move(tm)); diff --git a/tools/ClangPlugin.h b/tools/ClangPlugin.h index 9b928bf2d..a51ca3b13 100644 --- a/tools/ClangPlugin.h +++ b/tools/ClangPlugin.h @@ -68,8 +68,7 @@ namespace clad { public: CladTimerGroup(); - void StartNewTimer(const llvm::StringRef TimerName, - const llvm::StringRef TimerDesc); + void StartNewTimer(llvm::StringRef TimerName, llvm::StringRef TimerDesc); void StopTimer(); };