From 83e21568ee1740fd69838f797fd2d8472e93c5f8 Mon Sep 17 00:00:00 2001 From: Bahram Dahi Date: Wed, 14 Aug 2013 15:54:13 -0700 Subject: [PATCH] Minor bug fix, missing const in method signature --- modules/core/include/opencv2/core/operations.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 0c697275bb..7b2c94007a 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -3026,7 +3026,7 @@ template static inline void read(const FileNode& node, Complex<_Tp value = temp.size() != 2 ? default_value : Complex<_Tp>(saturate_cast<_Tp>(temp[0]), saturate_cast<_Tp>(temp[1])); } -template static inline void read(const FileNode& node, Rect_<_Tp>& value, Rect_<_Tp>& default_value) +template static inline void read(const FileNode& node, Rect_<_Tp>& value, const Rect_<_Tp>& default_value) { vector<_Tp> temp; FileNodeIterator it = node.begin(); it >> temp; value = temp.size() != 4 ? default_value : Rect_<_Tp>(saturate_cast<_Tp>(temp[0]), saturate_cast<_Tp>(temp[1]),