File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -437,8 +437,8 @@ namespace utils {
437437 * @param t The function forms the lvalue reference to const type of this argument.
438438 */
439439 template <class T >
440- // cppcheck-suppress constParameterReference
441- constexpr typename std::add_const<T>::type & as_const (T& t) noexcept
440+ // cppcheck-suppress constParameterReference
441+ constexpr typename std::add_const<T>::type& as_const (T& t) noexcept
442442 {
443443 static_assert (!std::is_const<T>::value, " object is already const" );
444444 static_assert (!std::is_pointer<T>::value, " object is a pointer" );
Original file line number Diff line number Diff line change @@ -4922,8 +4922,9 @@ class TestCondition : public TestFixture {
49224922 " char c = 'A';\n "
49234923 " f0(c);\n "
49244924 " }\n " );
4925- ASSERT_EQUALS (" [test.cpp:3:11] -> [test.cpp:4:11]: (style) Condition 'c>=1' is always true [knownConditionTrueFalse]\n " ,
4926- errout_str ());
4925+ ASSERT_EQUALS (
4926+ " [test.cpp:3:11] -> [test.cpp:4:11]: (style) Condition 'c>=1' is always true [knownConditionTrueFalse]\n " ,
4927+ errout_str ());
49274928 }
49284929
49294930 void alwaysTrueSymbolic ()
You can’t perform that action at this time.
0 commit comments