aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/profile.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-10-21 14:47:44 +0200
committerGitHub <noreply@github.com>2022-10-21 20:47:44 +0800
commit784e498c4a9c1f03266ced5ec3f55c3a6c94b80d (patch)
tree55f79bf7e309d522a76f6efe0cb3ed631340f431 /src/nvim/profile.c
parente554f5c545b9ee1195d617b3ac21f24829330a31 (diff)
downloadrneovim-784e498c4a9c1f03266ced5ec3f55c3a6c94b80d.tar.gz
rneovim-784e498c4a9c1f03266ced5ec3f55c3a6c94b80d.tar.bz2
rneovim-784e498c4a9c1f03266ced5ec3f55c3a6c94b80d.zip
refactor: clang-tidy fixes to silence clangd warning (#20683)
* refactor: readability-uppercase-literal-suffix * refactor: readability-named-parameter * refactor: bugprone-suspicious-string-compare * refactor: google-readability-casting * refactor: readability-redundant-control-flow * refactor: bugprone-too-small-loop-variable * refactor: readability-non-const-parameter * refactor: readability-avoid-const-params-in-decls * refactor: google-readability-todo * refactor: readability-inconsistent-declaration-parameter-name * refactor: bugprone-suspicious-missing-comma * refactor: remove noisy or slow warnings
Diffstat (limited to 'src/nvim/profile.c')
-rw-r--r--src/nvim/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/profile.c b/src/nvim/profile.c
index 50a8a371f5..b588431bda 100644
--- a/src/nvim/profile.c
+++ b/src/nvim/profile.c
@@ -398,7 +398,7 @@ bool prof_def_func(void)
/// Print the count and times for one function or function line.
///
/// @param prefer_self when equal print only self time
-static void prof_func_line(FILE *fd, int count, proftime_T *total, proftime_T *self,
+static void prof_func_line(FILE *fd, int count, const proftime_T *total, const proftime_T *self,
bool prefer_self)
{
if (count > 0) {
@@ -684,7 +684,7 @@ void script_prof_save(proftime_T *tm)
}
/// Count time spent in children after invoking another script or function.
-void script_prof_restore(proftime_T *tm)
+void script_prof_restore(const proftime_T *tm)
{
scriptitem_T *si;