From e9bd8df8b90c00595448f80b19daf022109a711e Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Mon, 9 Sep 2019 18:39:08 +0200 Subject: [PATCH] libbacktrace: Fix clang-tidy warning * warning: overloaded 'operator{++,--}' returns a reference instead of a constant object type [cert-dcl21-cpp] Change-Id: I8a904622b30dc70d17483b87748c2ea541e50c46 --- libbacktrace/include/backtrace/BacktraceMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbacktrace/include/backtrace/BacktraceMap.h b/libbacktrace/include/backtrace/BacktraceMap.h index f8d5058c7..e000a00e2 100644 --- a/libbacktrace/include/backtrace/BacktraceMap.h +++ b/libbacktrace/include/backtrace/BacktraceMap.h @@ -79,7 +79,7 @@ public: index_++; return *this; } - iterator& operator++(int increment) { + const iterator operator++(int increment) { index_ += increment; return *this; } @@ -87,7 +87,7 @@ public: index_--; return *this; } - iterator& operator--(int decrement) { + const iterator operator--(int decrement) { index_ -= decrement; return *this; }