Skip to content

Commit

Permalink
remove const
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadSpheroid committed Feb 25, 2024
1 parent e4c1f11 commit 9a4e332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/ClangPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<llvm::Timer> tm =
std::make_unique<llvm::Timer>(TimerName, TimerDesc, m_Tg);
Timers.push_back(std::move(tm));
Expand Down
3 changes: 1 addition & 2 deletions tools/ClangPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down

0 comments on commit 9a4e332

Please sign in to comment.