c++: references cannot be NULL
authorMichael Wallner <mike@php.net>
Mon, 6 Jan 2020 11:26:39 +0000 (12:26 +0100)
committerMichael Wallner <mike@php.net>
Mon, 6 Jan 2020 11:26:39 +0000 (12:26 +0100)
libtest/comparison.hpp

index c67bc33f1a04b2ebad0fb5a7f91de402b4340036..9a7d81c0413a5abb8c02b9dcad7d8cd7d65ec28f 100644 (file)
@@ -91,7 +91,7 @@ bool _compare(const char *file, int line, const char *func, const T1_comparable&
 }
 
 template <class T1_comparable, class T2_comparable>
-bool _compare_strcmp(const char *file, int line, const char *func, const T1_comparable& __expected, const T2_comparable& __actual)
+bool _compare_strcmp(const char *file, int line, const char *func, const T1_comparable *__expected, const T2_comparable *__actual)
 {
   if (__expected == NULL)
   {