From 32897bc05ca7290e9758a5064f36931a056c9eff Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 19 Sep 2017 09:10:08 -0600 Subject: [PATCH] Mark some input arguments as 'const'. --- include/deal.II/fe/fe_update_flags.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/deal.II/fe/fe_update_flags.h b/include/deal.II/fe/fe_update_flags.h index 44d620a42a..b883355dac 100644 --- a/include/deal.II/fe/fe_update_flags.h +++ b/include/deal.II/fe/fe_update_flags.h @@ -242,7 +242,8 @@ enum UpdateFlags */ template inline -StreamType &operator << (StreamType &s, UpdateFlags u) +StreamType &operator << (StreamType &s, + const UpdateFlags u) { s << " UpdateFlags|"; if (u & update_values) s << "values|"; @@ -281,7 +282,8 @@ StreamType &operator << (StreamType &s, UpdateFlags u) */ inline UpdateFlags -operator | (UpdateFlags f1, UpdateFlags f2) +operator | (const UpdateFlags f1, + const UpdateFlags f2) { return static_cast ( static_cast (f1) | @@ -299,7 +301,8 @@ operator | (UpdateFlags f1, UpdateFlags f2) */ inline UpdateFlags & -operator |= (UpdateFlags &f1, UpdateFlags f2) +operator |= (UpdateFlags &f1, + const UpdateFlags f2) { f1 = f1 | f2; return f1; @@ -317,7 +320,8 @@ operator |= (UpdateFlags &f1, UpdateFlags f2) */ inline UpdateFlags -operator & (UpdateFlags f1, UpdateFlags f2) +operator & (const UpdateFlags f1, + const UpdateFlags f2) { return static_cast ( static_cast (f1) & @@ -333,7 +337,8 @@ operator & (UpdateFlags f1, UpdateFlags f2) */ inline UpdateFlags & -operator &= (UpdateFlags &f1, UpdateFlags f2) +operator &= (UpdateFlags &f1, + const UpdateFlags f2) { f1 = f1 & f2; return f1; -- 2.39.5